| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class ModelMgrWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(ModelMgr), typeof(SingletonMono<ModelMgr>));
- L.RegFunction("InitMgr", InitMgr);
- L.RegFunction("CreateModel", CreateModel);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("ModelRoot", get_ModelRoot, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int InitMgr(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- ModelMgr obj = (ModelMgr)ToLua.CheckObject<ModelMgr>(L, 1);
- obj.InitMgr();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateModel(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- ModelMgr obj = (ModelMgr)ToLua.CheckObject<ModelMgr>(L, 1);
- int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
- LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
- System.Action<LuaInterface.LuaTable,System.Collections.Generic.List<UnityEngine.GameObject>,object[]> arg2 = (System.Action<LuaInterface.LuaTable,System.Collections.Generic.List<UnityEngine.GameObject>,object[]>)ToLua.CheckDelegate<System.Action<LuaInterface.LuaTable,System.Collections.Generic.List<UnityEngine.GameObject>,object[]>>(L, 4);
- object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
- obj.CreateModel(arg0, arg1, arg2, arg3);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ModelRoot(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ModelMgr obj = (ModelMgr)o;
- UnityEngine.GameObject ret = obj.ModelRoot;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ModelRoot on a nil value");
- }
- }
- }
|