示例#1
0
 public static void SetFieldName(InterpreterRuntime runtime, int registerIndex)
 {
     if (!runtime.GetObject(registerIndex, out Test.UnitTests.Color result) || !runtime.Pop(out result.Name))
     {
         Log.Error("Color::Name Setter failed");
     }
 }
示例#2
0
 public static void GetFieldB(InterpreterRuntime runtime, int registerIndex)
 {
     if (!runtime.GetObject(registerIndex, out Test.UnitTests.Color result) || !runtime.Push(result.B, true))
     {
         Log.Error("Color::B Getter failed");
     }
 }
示例#3
0
 public static void SetRGB(InterpreterRuntime runtime, int registerIndex)
 {
     if (!runtime.GetObject(registerIndex, out Test.UnitTests.Color result) || !runtime.Pop(out System.Int32 a3) || !runtime.Pop(out System.Int32 a2) || !runtime.Pop(out System.Int32 a1))
     {
         Log.Error("Color::RGB Function failed");
     }