Пример #1
0
 /// <summary>
 /// Creates a new instruction
 /// </summary>
 /// <param name="opCode">The op-code</param>
 /// <param name="value">The value</param>
 /// <param name="classType">The class type</param>
 /// <param name="parameters">The parameters</param>
 public Instruction(Core.OpCodes opCode, string value, string classType, IList <string> parameters)
 {
     this.OpCode      = opCode;
     this.Format      = InstructionFormat.CallInstance;
     this.IntValue    = 0;
     this.FloatValue  = 0.0f;
     this.StringValue = value;
     this.ClassType   = classType;
     this.Parameters  = new ReadOnlyCollection <string>(new List <string>(parameters));
 }
Пример #2
0
 /// <summary>
 /// Creates a new instruction
 /// </summary>
 /// <param name="opCode">The op-code</param>
 /// <param name="value">The value</param>
 public Instruction(Core.OpCodes opCode, string value)
 {
     this.OpCode      = opCode;
     this.Format      = InstructionFormat.StringValue;
     this.IntValue    = 0;
     this.FloatValue  = 0.0f;
     this.StringValue = value;
     this.Parameters  = null;
     this.ClassType   = null;
 }