-
Notifications
You must be signed in to change notification settings - Fork 20
Library Features
Gabriel edited this page Sep 26, 2023
·
2 revisions
Using the LibraryInitializer
attribute, you can mark a public function to be executed when your library is referenced.
Library "ExampleLibrary" by "Hyper"
{
[LibraryInitializer]
public void Init()
{
Console.WriteLine("Library initialised!");
}
}
Using the LibraryUpdate
attribute, you can mark a public function to be executed every frame.
Library "ExampleLibrary" by "Hyper"
{
[LibraryUpdate]
public void Update()
{
Console.WriteLine("Library updated!");
}
}
- Home
- Codes
-
Libraries
- Getting started
- Features
-
Usage
- Static reference
- Include reference
- Global
- Sonic Frontiers
- Sonic Origins