Class LogicEvent
Represents a single logic event that is part of a logic chain.
Assembly: Assembly-CSharp.dll
Syntax
Properties
Chain
The LogicChain this event is a part of.
Declaration
public LogicChain Chain { get; }
Property Value
EventProperties
EventProperties of modded events. Always empty for official events.
Declaration
public IDictionary<string, EventProperty> EventProperties { get; }
Property Value
EventType
Which event type this is.
This is unique for offical events, but always Modded for all modded events.
Declaration
public EventContainer.EventType EventType { get; }
Property Value
Type |
Description |
EventContainer.EventType |
|
Identifier
Unique identifier of this event.
Declaration
public string Identifier { get; }
Property Value
InternalObject
The internal representation of this event.
WARNING: This is not part of the stable API and subject to change!
Declaration
public EntityEvent InternalObject { get; }
Property Value
Type |
Description |
EntityEvent |
|
IsModdedEvent
Whether this event type is added to the game by a mod.
Declaration
public bool IsModdedEvent { get; }
Property Value
Name
Display name of this event.
This is the same text that is displayed in the mapper when setting up the event.
Declaration
public string Name { get; }
Property Value
PickerEntities
The entities that are selected in the picker of this event, if it has one.
Declaration
public ReadOnlyCollection<Entity> PickerEntities { get; }
Property Value
Team
The assigned team. This value is correct for official events, as well as modded events that contain
only one team button. If a modded event supports multiple teams, this value will be the first one
while the other can be accessed using the Teams property.
Declaration
public MPTeam Team { get; }
Property Value
Teams
All assigned teams. Includes the team returned by Team at the first position but also any other teams.
Declaration
public MPTeam[] Teams { get; }
Property Value
Type |
Description |
MPTeam[] |
|
Methods
Equals(LogicEvent)
Declaration
protected bool Equals(LogicEvent other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
From(EntityEvent, LogicChain)
Create a LogicEvent from its internal representation.
Declaration
public static LogicEvent From(EntityEvent evt, LogicChain chain)
Parameters
Type |
Name |
Description |
EntityEvent |
evt |
|
LogicChain |
chain |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(LogicEvent, LogicEvent)
Declaration
public static bool operator ==(LogicEvent left, LogicEvent right)
Parameters
Returns
Inequality(LogicEvent, LogicEvent)
Declaration
public static bool operator !=(LogicEvent left, LogicEvent right)
Parameters
Returns