Class ZonePreparation
Fixture authoring: make zones exist in a world before a scenario relies on them. Never an acceptance result.
public static class ZonePreparation
- Inheritance
-
objectZonePreparation
Methods
EnsureGeneratedAsync(GameActor, IEnumerable<(int X, int Z)>, ScenarioReport, TimeSpan, TimeSpan?, CancellationToken)
Makes each zone generated: asks ZoneSystem.instance.IsZoneGenerated, and if not, asks the server to create it
as a ghost zone (CreateGhostZones at the zone's centre) and asks again. The game raises no event for a
generated zone, so this re-asks every poll (250 ms by default, and positive) until
perZone expires. Records one step per zone. Requires devcommands (cli_call).
public static Task EnsureGeneratedAsync(GameActor server, IEnumerable<(int X, int Z)> zones, ScenarioReport report, TimeSpan perZone, TimeSpan? poll = null, CancellationToken cancellation = default)
Parameters
serverGameActorzonesIEnumerable<(int X, int Z)>reportScenarioReportperZoneTimeSpanpollTimeSpan?cancellationCancellationToken
Returns
- Task