EX_SwitchValue
Namespace: UAssetAPI.Kismet.Bytecode.Expressions
A single Kismet bytecode instruction, corresponding to the EExprToken.EX_SwitchValue instruction.
public class EX_SwitchValue : UAssetAPI.Kismet.Bytecode.KismetExpression
Inheritance Object → KismetExpression → EX_SwitchValue
Fields
EndGotoOffset
Code offset to jump to when finished.
public uint EndGotoOffset;
IndexTerm
The index term of this switch statement.
public KismetExpression IndexTerm;
DefaultTerm
The default term of this switch statement.
public KismetExpression DefaultTerm;
Cases
All the cases in this switch statement.
public FKismetSwitchCase[] Cases;
Tag
An optional tag which can be set on any expression in memory. This is for the user only, and has no bearing in the API itself.
public object Tag;
RawValue
public object RawValue;
Properties
Token
The token of this expression.
public EExprToken Token { get; }
Property Value
Inst
The token of this instruction expressed as a string.
public string Inst { get; }
Property Value
Constructors
EX_SwitchValue()
public EX_SwitchValue()
Methods
Read(AssetBinaryReader)
Reads out the expression from a BinaryReader.
public void Read(AssetBinaryReader reader)
Parameters
reader
AssetBinaryReader
The BinaryReader to read from.
Write(AssetBinaryWriter)
Writes the expression to a BinaryWriter.
public int Write(AssetBinaryWriter writer)
Parameters
writer
AssetBinaryWriter
The BinaryWriter to write from.
Returns
Int32
The iCode offset of the data that was written.