Class ZoneState
One zone as the client holds it: its terrain, the object instances in it and the saved objects that have none.
public sealed record ZoneState
- Inheritance
-
objectZoneState
Constructors
ZoneState(ZoneId, bool, bool, int, int, int, int)
One zone as the client holds it: its terrain, the object instances in it and the saved objects that have none.
public ZoneState(ZoneId Zone, bool TerrainLoaded, bool AreaReady, int Instances, int NearInstances, int Saved, int WithoutInstance)
Parameters
ZoneZoneIdTerrainLoadedboolAreaReadyboolWhether the game considers this zone and its neighbouring saved objects ready.
InstancesintObject instances whose position is in the zone, distant ones included.
NearInstancesintThose not marked distant: while any is there, the game keeps the zone's terrain.
SavedintSaved objects of known prefabs that this client holds for the zone.
WithoutInstanceintOf those, the ones not instantiated.
Properties
AreaReady
Whether the game considers this zone and its neighbouring saved objects ready.
public bool AreaReady { get; init; }
Property Value
- bool
Instances
Object instances whose position is in the zone, distant ones included.
public int Instances { get; init; }
Property Value
- int
Loaded
The terrain is loaded and every saved object of a known prefab has its instance.
public bool Loaded { get; }
Property Value
- bool
NearInstances
Those not marked distant: while any is there, the game keeps the zone's terrain.
public int NearInstances { get; init; }
Property Value
- int
Saved
Saved objects of known prefabs that this client holds for the zone.
public int Saved { get; init; }
Property Value
- int
TerrainLoaded
public bool TerrainLoaded { get; init; }
Property Value
- bool
Unloaded
Nothing of the zone is in the scene: no terrain and no object instance, distant ones included.
public bool Unloaded { get; }
Property Value
- bool
WithoutInstance
Of those, the ones not instantiated.
public int WithoutInstance { get; init; }
Property Value
- int
Zone
public ZoneId Zone { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.