Show / Hide Table of Contents

Class EventProperty

EventProperty is the base class for all different event properties. An event property is a value that can be configured in the logic editor on an event.

Inheritance
Object
Element
EventProperty
EventProperty.Choice
EventProperty.Icon
EventProperty.NumberInput
EventProperty.Picker
EventProperty.TeamButton
EventProperty.Text
EventProperty.TextInput
EventProperty.Toggle
Implements
IValidatable
Inherited Members
Element.Validate()
Element.MissingElement(String, String)
Element.MissingAttribute(String, String)
Element.InvalidData(String, String)
Element.Warn(String, String)
Element.LineNumber
Element.LinePosition
Element.AttributesUsed
Element.ElementsUsed
Element.FileName
Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public abstract class EventProperty : Element, IValidatable

Constructors

EventProperty()

Declaration
protected EventProperty()

Fields

Event

Declaration
protected EntityEvent Event
Field Value
Type Description
EntityEvent

Logic

Declaration
protected EntityLogic Logic
Field Value
Type Description
EntityLogic

Name

Name of the property, as specified in the XML declaration.

Declaration
public string Name
Field Value
Type Description
String

nameRequired

Declaration
protected bool nameRequired
Field Value
Type Description
Boolean

Row

What row the property is displayed in.

Declaration
public int Row
Field Value
Type Description
Int32

XSpecified

Whether or not an X coordinate was specified.

Declaration
public bool XSpecified
Field Value
Type Description
Boolean

Properties

X

The X coordinate of the event property in its row. 0 if not specified.

Declaration
public float X { get; set; }
Property Value
Type Description
Single

Methods

CopyAttributes(EventProperty)

Declaration
protected EventProperty CopyAttributes(EventProperty dst)
Parameters
Type Name Description
EventProperty dst
Returns
Type Description
EventProperty

OnEdit()

Declaration
protected virtual void OnEdit()

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Validate(String)

Declaration
protected override bool Validate(string elementName)
Parameters
Type Name Description
String elementName
Returns
Type Description
Boolean
Overrides
Element.Validate(String)

Implements

IValidatable
Back to top Generated by DocFX