Table of Contents

Class GeneratingEventArgs

Namespace
Exiled.Events.EventArgs.Map
Assembly
Exiled.Events.dll

Contains all information after the server generates a seed, but before the map is generated.

public class GeneratingEventArgs : IDeniableEvent, IExiledEvent
Inheritance
GeneratingEventArgs
Implements
Inherited Members
Extension Methods

Remarks

The target layout properties have a miniscule (but non-zero) chance of not working, make sure your event can handle the edge case of failure if you want reliability.

Constructors

GeneratingEventArgs(int, LczFacilityLayout, HczFacilityLayout, EzFacilityLayout)

Initializes a new instance of the GeneratingEventArgs class.

public GeneratingEventArgs(int seed, LczFacilityLayout lcz, HczFacilityLayout hcz, EzFacilityLayout ez)

Parameters

seed int
lcz LczFacilityLayout
hcz HczFacilityLayout
ez EzFacilityLayout

Properties

EzLayout

Gets the ez layout generated by Seed.

public EzFacilityLayout EzLayout { get; }

Property Value

EzFacilityLayout

HczLayout

Gets the hcz layout generated by Seed.

public HczFacilityLayout HczLayout { get; }

Property Value

HczFacilityLayout

IsAllowed

Gets or sets a value indicating whether the map can be generated.

public bool IsAllowed { get; set; }

Property Value

bool

Remarks

This property overrides any changes in Seed.

LczLayout

Gets the lcz layout generated by Seed.

public LczFacilityLayout LczLayout { get; }

Property Value

LczFacilityLayout

Seed

Gets or sets the seed of the map.

public int Seed { get; set; }

Property Value

int

Remarks

This property overrides any changes in TargetLczLayout, TargetHczLayout, or TargetEzLayout.

TargetEzLayout

Gets or sets the ez layout Exiled will attempt to generate a seed for.

public EzFacilityLayout TargetEzLayout { get; set; }

Property Value

EzFacilityLayout

Remarks

The default value, Unknown, indicates any layout is valid.

TargetHczLayout

Gets or sets the hcz layout Exiled will attempt to generate a seed for.

public HczFacilityLayout TargetHczLayout { get; set; }

Property Value

HczFacilityLayout

Remarks

The default value, Unknown, indicates any layout is valid.

TargetLczLayout

Gets or sets the lcz layout Exiled will attempt to generate a seed for.

public LczFacilityLayout TargetLczLayout { get; set; }

Property Value

LczFacilityLayout

Remarks

The default value, Unknown, indicates any layout is valid.