AoTHelper.md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs
AoTHelper Class
Provides a set of methods to help the generation of generic code for AoT compilation.
public static class AoTHelper
Inheritance System.Object ๐ก AoTHelper
| Methods | |
|---|---|
| RegisterComponent<T>() | Registers the type T so it can freely be used in ComponentAttribute. |
| RegisterMessage<T>() | Registers the type T so SubscribeAttribute can freely be used on method like the delegate MessageHandler<T>(T) to automatically subscribe when using IPublisherExtension on a World instance. |
| RegisterUnmanagedComponent<T>() | Registers the unmanaged type T so it can freely be used in ComponentAttribute and by Set<T>(T). |