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