Skip to main content

ICleanOnSerialize

An interface in Root.Township, the global namespace.

Component that needs to reset state before its object is packed into a save, for example when an item is sent by postbox. BasicDecay and Fuse use it to cancel their timers.

Methods​

MemberWhat it is
void OnSerialize()Called just before the object is serialized.