LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Add Auto-Registration/Unregistration of Streamable Types #24

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Use Class Constructors/Destructors to make TLKStreamable descendants automatically register without the need for the implementing developer to call "Streamables.Register(TMyStreamableClass);"

LaKraven commented 9 years ago

Unfortunately, Class Constructors/Destructors cannot work in the way that would be required for this to work.

For now, TLKStreamable descendants will need to be registered explicitly by the implementing developer (typically in the Initialization section of the unit in which they are defined)