Interface ICustomComponent
- Namespace
- TDMaker.Core
- Assembly
- TDMaker.Core.dll
A prewarmed custom component; its reset must not allocate.
public interface ICustomComponent
Examples
public void Reset(EntityTemplate template) { charge = template?.CustomData.Get<ChargeDef>()?.Initial ?? 0; }
Methods
Reset(EntityTemplate)
Resets every runtime field on spawn or template replacement; null identifies an unused pool bundle.
void Reset(EntityTemplate template)
Parameters
templateEntityTemplate