예제 #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");
     }