Game.ZoningTriggerData
Assembly: Assembly-CSharp.dll
Namespace: Game.Tutorials
Type: struct
Base: IBufferElementData
Summary:
A lightweight buffer element used by the tutorial system to record a zone Entity that should trigger zoning-related tutorial logic. Instances of this struct are stored in an entity's DynamicBuffer
Fields
public Unity.Entities.Entity m_Zone
Holds the Entity that identifies the zone associated with this trigger entry. This is the only data stored by the buffer element.
Properties
- (none)
This type exposes no properties; it is a plain public-field struct suitable for use as a buffer element.
Constructors
public ZoningTriggerData(Unity.Entities.Entity zone)
Creates a new ZoningTriggerData and sets m_Zone to the provided Entity. Useful when adding entries to a DynamicBuffer.
Methods
- (none)
This struct has no methods beyond the generated struct methods (e.g., default constructor).
Usage Example
// Add a zone entity to an entity's ZoningTriggerData buffer
var buffer = entityManager.GetBuffer<ZoningTriggerData>(targetEntity);
buffer.Add(new ZoningTriggerData(zoneEntity));
// Iterate through stored zones
foreach (var entry in buffer)
{
Entity zone = entry.m_Zone;
// perform tutorial checks or logic for this zone
}