Skip to content

Library Features

Gabriel edited this page Sep 26, 2023 · 2 revisions

Table of contents

Attributes

Initializer

Using the LibraryInitializer attribute, you can mark a public function to be executed when your library is referenced.

Examples

Library "ExampleLibrary" by "Hyper"
{
    [LibraryInitializer]
    public void Init()
    {
        Console.WriteLine("Library initialised!");
    }
}

Update

Using the LibraryUpdate attribute, you can mark a public function to be executed every frame.

Examples

Library "ExampleLibrary" by "Hyper"
{
    [LibraryUpdate]
    public void Update()
    {
        Console.WriteLine("Library updated!");
    }
}
Clone this wiki locally