I was thinking that some sort of Tickable interface would be useful here...
i.e. Something along these lines:
Not so sure on the next steps... Would it be possible for you to find all static classes that implement the Tickable interface via reflection and automatically register them with the tick manager?
Essentially we'd be hooking into a component of the map instead of directly into the map itself.
i.e. Something along these lines:
Code Select
public interface Tickable
{
TickerType tickerType;
void Tick();
void TickRare();
}
Not so sure on the next steps... Would it be possible for you to find all static classes that implement the Tickable interface via reflection and automatically register them with the tick manager?
Essentially we'd be hooking into a component of the map instead of directly into the map itself.