static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); Nova.DialogueBoxColor.Type o = (Nova.DialogueBoxColor.Type)arg0; ToLua.Push(L, o); return(1); }
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)); } }
static void Push(IntPtr L, Nova.DialogueBoxColor.Type arg) { ToLua.Push(L, arg); }