Skip to content
Documentation

S1API

A powerful Schedule One Mono / Il2Cpp Cross Compatibility Layer for seamless game development

CrossCompatibility
OpenSource
SimpleIntegration
JohnDoe.cs
public class JohnDoe : NPC
{
    protected override string FirstName => "John";
    protected override string LastName => "Doe";
    private bool _hasIntroduced = false;
    private Log _logger = new Log("JohnDoe");

    public JohnDoe() : base("johndoe", "John", "Doe")
    {
        TimeManager.OnDayPass += OnDayPass;
        _logger.Msg("NPC Created");
    }

    private void OnDayPass()
    {
        if (!_hasIntroduced)
        {
            SendTextMessage("Hello, I'm John! Nice to meet you.");
            _hasIntroduced = true;
        }
    }
}

Ready to build with S1API?

Get started with our comprehensive guide and documentation

Released under the MIT License.