static int get_color(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.DialogueBoxColor obj = (Nova.DialogueBoxColor)o; UnityEngine.Color ret = obj.color; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value")); } }
static int set_color(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.DialogueBoxColor obj = (Nova.DialogueBoxColor)o; UnityEngine.Color arg0 = ToLua.ToColor(L, 2); obj.color = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value")); } }
static int _CreateNova_DialogueBoxColor(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { Nova.DialogueBoxController arg0 = (Nova.DialogueBoxController)ToLua.CheckObject <Nova.DialogueBoxController>(L, 1); Nova.DialogueBoxColor.Type arg1 = (Nova.DialogueBoxColor.Type)ToLua.CheckObject(L, 2, typeof(Nova.DialogueBoxColor.Type)); Nova.DialogueBoxColor obj = new Nova.DialogueBoxColor(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.DialogueBoxColor.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public ColorAnimationProperty(DialogueBoxColor dialogueBoxColor, Color startValue, Color targetValue) : base( startValue, targetValue) { this.dialogueBoxColor = dialogueBoxColor; }
static int _CreateNova_ColorAnimationProperty(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes <Nova.CharacterColor, UnityEngine.Color>(L, 1)) { Nova.CharacterColor arg0 = (Nova.CharacterColor)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 2 && TypeChecker.CheckTypes <UnityEngine.SpriteRenderer, UnityEngine.Color>(L, 1)) { UnityEngine.SpriteRenderer arg0 = (UnityEngine.SpriteRenderer)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 2 && TypeChecker.CheckTypes <UnityEngine.UI.Image, UnityEngine.Color>(L, 1)) { UnityEngine.UI.Image arg0 = (UnityEngine.UI.Image)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 2 && TypeChecker.CheckTypes <Nova.DialogueBoxColor, UnityEngine.Color>(L, 1)) { Nova.DialogueBoxColor arg0 = (Nova.DialogueBoxColor)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else if (count == 3 && TypeChecker.CheckTypes <Nova.CharacterColor, UnityEngine.Color, UnityEngine.Color>(L, 1)) { Nova.CharacterColor arg0 = (Nova.CharacterColor)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.SpriteRenderer, UnityEngine.Color, UnityEngine.Color>(L, 1)) { UnityEngine.SpriteRenderer arg0 = (UnityEngine.SpriteRenderer)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.UI.Image, UnityEngine.Color, UnityEngine.Color>(L, 1)) { UnityEngine.UI.Image arg0 = (UnityEngine.UI.Image)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else if (count == 3 && TypeChecker.CheckTypes <Nova.DialogueBoxColor, UnityEngine.Color, UnityEngine.Color>(L, 1)) { Nova.DialogueBoxColor arg0 = (Nova.DialogueBoxColor)ToLua.ToObject(L, 1); UnityEngine.Color arg1 = ToLua.ToColor(L, 2); UnityEngine.Color arg2 = ToLua.ToColor(L, 3); Nova.ColorAnimationProperty obj = new Nova.ColorAnimationProperty(arg0, arg1, arg2); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.ColorAnimationProperty.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }