BasicDigable
A class in Root.Township, the global namespace.
Something a digging tool can dig up (IDigable). The server runs the dug event and sends dig or hit effects to clients in nearby chunks.
- Listed in Global namespace: A to B
- Inherits or implements
NetworkEntityBehaviour,IDigable - Derived types
HealthBasedDigable
Constructors
| Member | What it is |
|---|---|
BasicDigable() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private PositionEvent onDigHitEffects | Effect for a digging hit, played at this position. |
private PositionEvent onDugEffects | Effect for being dug up, played at this position. |
private PositionEvent onDugServer | Server-only event when dug, for the gameplay result. |
private MethodSyncStruct<bool> syncDig | Network sync for dig effects, sent as an effect request. |