C# Class Alexandria.Engines.GoldBox.Resources.ScriptInstruction

Exibir arquivo Open project: Burton-Radons/Alexandria

Protected Properties

Property Type Description
OperandsMutable Codex

Public Methods

Method Description
Read ( Script script, BinaryReader reader ) : ScriptInstruction
ScriptInstruction ( Script script, long offset, BinaryReader reader, ScriptOpcode opcode ) : System
ToRichText ( RichTextBuilder builder ) : void
ToString ( ) : string

Protected Methods

Method Description
Link ( ) : void
ReadOperand ( BinaryReader reader, ScriptArgument operandCode ) : bool
ReadOperand ( BinaryReader reader, string operands, int &operandIndex, ScriptArgument operandCode ) : bool
ScriptInstruction ( Script script, long offset, ScriptOpcode opcode ) : System
ToBaseString ( ) : string
ToStringOpcode ( ) : string

Private Methods

Method Description
GetIntegerOperand ( int index ) : int?
GetOperand ( int index ) : ScriptOperand
GetOperandString ( int index ) : string
IsCompoundOperandCode ( ScriptArgument value ) : bool

Method Details

Link() protected method

protected Link ( ) : void
return void

Read() public static method

public static Read ( Script script, BinaryReader reader ) : ScriptInstruction
script Script
reader System.IO.BinaryReader
return ScriptInstruction

ReadOperand() protected method

protected ReadOperand ( BinaryReader reader, ScriptArgument operandCode ) : bool
reader System.IO.BinaryReader
operandCode ScriptArgument
return bool

ReadOperand() protected method

protected ReadOperand ( BinaryReader reader, string operands, int &operandIndex, ScriptArgument operandCode ) : bool
reader System.IO.BinaryReader
operands string
operandIndex int
operandCode ScriptArgument
return bool

ScriptInstruction() public method

public ScriptInstruction ( Script script, long offset, BinaryReader reader, ScriptOpcode opcode ) : System
script Script
offset long
reader System.IO.BinaryReader
opcode ScriptOpcode
return System

ScriptInstruction() protected method

protected ScriptInstruction ( Script script, long offset, ScriptOpcode opcode ) : System
script Script
offset long
opcode ScriptOpcode
return System

ToBaseString() protected method

protected ToBaseString ( ) : string
return string

ToRichText() public method

public ToRichText ( RichTextBuilder builder ) : void
builder RichTextBuilder
return void

ToString() public method

public ToString ( ) : string
return string

ToStringOpcode() protected method

protected ToStringOpcode ( ) : string
return string

Property Details

OperandsMutable protected_oe property

protected Codex OperandsMutable
return Codex