Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.94 KB

AoTHelper.md

File metadata and controls

18 lines (13 loc) · 1.94 KB

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).