Class CustomDataSlots
- Namespace
- TDMaker.Core
- Assembly
- TDMaker.Core.dll
Type-keyed runtime slots, allocated once per entity during extension registration.
public sealed class CustomDataSlots
- Inheritance
-
CustomDataSlots
- Inherited Members
Constructors
CustomDataSlots()
public CustomDataSlots()
Methods
Get<T>()
Reads a registered component without allocating; null means unregistered.
public T Get<T>() where T : class, ICustomComponent
Returns
- T
Type Parameters
T
Examples
actor.CustomData.Get<ShieldState>().Charge -= 1;