static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 5 && translator.Assignable <System.IO.BinaryReader>(L, 2) && translator.Assignable <PF.GraphNode[]>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <PF.GraphMeta>(L, 5)) { System.IO.BinaryReader _reader = (System.IO.BinaryReader)translator.GetObject(L, 2, typeof(System.IO.BinaryReader)); PF.GraphNode[] _id2NodeMapping = (PF.GraphNode[])translator.GetObject(L, 3, typeof(PF.GraphNode[])); uint _graphIndex = LuaAPI.xlua_touint(L, 4); PF.GraphMeta _meta = (PF.GraphMeta)translator.GetObject(L, 5, typeof(PF.GraphMeta)); PF.GraphSerializationContext gen_ret = new PF.GraphSerializationContext(_reader, _id2NodeMapping, _graphIndex, _meta); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <System.IO.BinaryWriter>(L, 2)) { System.IO.BinaryWriter _writer = (System.IO.BinaryWriter)translator.GetObject(L, 2, typeof(System.IO.BinaryWriter)); PF.GraphSerializationContext gen_ret = new PF.GraphSerializationContext(_writer); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.GraphSerializationContext constructor!")); }
static int _m_GetGraphType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphMeta gen_to_be_invoked = (PF.GraphMeta)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); System.Type gen_ret = gen_to_be_invoked.GetGraphType( _index); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _g_get_version(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphMeta gen_to_be_invoked = (PF.GraphMeta)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.version); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_typeNames(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphMeta gen_to_be_invoked = (PF.GraphMeta)translator.FastGetCSObj(L, 1); gen_to_be_invoked.typeNames = (System.Collections.Generic.List <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <string>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_graphs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphMeta gen_to_be_invoked = (PF.GraphMeta)translator.FastGetCSObj(L, 1); gen_to_be_invoked.graphs = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_version(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.GraphMeta gen_to_be_invoked = (PF.GraphMeta)translator.FastGetCSObj(L, 1); gen_to_be_invoked.version = (System.Version)translator.GetObject(L, 2, typeof(System.Version)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { PF.GraphMeta gen_ret = new PF.GraphMeta(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PF.GraphMeta constructor!")); }