static int _m_ReadBytes_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { System.IO.MemoryStream _memoryStream = (System.IO.MemoryStream)translator.GetObject(L, 1, typeof(System.IO.MemoryStream)); int _offset = LuaAPI.xlua_tointeger(L, 2); byte[] gen_ret = ETCold.StreamHelper.ReadBytes( _memoryStream, _offset); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public int __Gen_Delegate_Imp23(object p0, ref string p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.PushAny(L, p0); LuaAPI.lua_pushstring(L, p1); PCall(L, 2, 2, errFunc); p1 = LuaAPI.lua_tostring(L, errFunc + 2); int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
public int __Gen_Delegate_Imp11(int p0, string p1, out Tutorial.CSCallLua.DClass p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; LuaAPI.xlua_pushinteger(L, p0); LuaAPI.lua_pushstring(L, p1); PCall(L, 2, 2, errFunc); p2 = (Tutorial.CSCallLua.DClass)translator.GetObject(L, errFunc + 2, typeof(Tutorial.CSCallLua.DClass)); int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_SyncGetText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Http.HttpService __cl_gen_to_be_invoked = (JW.Framework.Http.HttpService)translator.FastGetCSObj(L, 1); { string url = LuaAPI.lua_tostring(L, 2); string __cl_gen_ret = __cl_gen_to_be_invoked.SyncGetText(url); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Result(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Text.RegularExpressions.Match gen_to_be_invoked = (System.Text.RegularExpressions.Match)translator.FastGetCSObj(L, 1); { string _replacement = LuaAPI.lua_tostring(L, 2); string gen_ret = gen_to_be_invoked.Result(_replacement); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Unity.Entities.Entity gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { string gen_ret = gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetReplaceOtherPlayerName(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.DBInstanceTypeControl __cl_gen_to_be_invoked = (xc.DBInstanceTypeControl)translator.FastGetCSObj(L, 1); try { { uint war_type = LuaAPI.xlua_touint(L, 2); uint war_sub_type = LuaAPI.xlua_touint(L, 3); string __cl_gen_ret = __cl_gen_to_be_invoked.GetReplaceOtherPlayerName(war_type, war_sub_type); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetEntryData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ZipReader gen_to_be_invoked = (FairyGUI.Utils.ZipReader)translator.FastGetCSObj(L, 1); { FairyGUI.Utils.ZipReader.ZipEntry _entry = (FairyGUI.Utils.ZipReader.ZipEntry)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ZipReader.ZipEntry)); byte[] gen_ret = gen_to_be_invoked.GetEntryData(_entry); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public char __Gen_Delegate_Imp27(string p0, int p1, char p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); LuaAPI.lua_pushstring(L, p0); LuaAPI.xlua_pushinteger(L, p1); LuaAPI.xlua_pushinteger(L, p2); PCall(L, 3, 1, errFunc); char __gen_ret = (char)LuaAPI.xlua_tointeger(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_ToJson(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { var gen_ret = gen_to_be_invoked.ToJson( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <LitJson.JsonWriter>(L, 2)) { LitJson.JsonWriter _writer = (LitJson.JsonWriter)translator.GetObject(L, 2, typeof(LitJson.JsonWriter)); gen_to_be_invoked.ToJson(_writer); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LitJson.JsonMockWrapper.ToJson!")); }
static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Core.FMath.FVec2 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked); { string __cl_gen_ret = __cl_gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, __cl_gen_ret); translator.Update(L, 1, __cl_gen_to_be_invoked); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ToByteArray(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); PF.Guid gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { byte[] gen_ret = gen_to_be_invoked.ToByteArray( ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetChildName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPerfect.ObjectItem gen_to_be_invoked = (LuaPerfect.ObjectItem)translator.FastGetCSObj(L, 1); { int _i = LuaAPI.xlua_tointeger(L, 2); string gen_ret = gen_to_be_invoked.GetChildName(_i); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetPBString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaManager gen_to_be_invoked = (LuaManager)translator.FastGetCSObj(L, 1); { string _fileName = LuaAPI.lua_tostring(L, 2); string gen_ret = gen_to_be_invoked.GetPBString(_fileName); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
internal static int LoadFromCustomLoaders(RealStatePtr L) { string filename = LuaAPI.lua_tostring(L, 1); LuaEnv self = ObjectTranslatorPool.Instance.Find(L).luaEnv; foreach (var loader in self.customLoaders) { string real_file_path = filename; byte[] bytes = loader(ref real_file_path); if (bytes != null) { if (LuaAPI.xluaL_loadbuffer(L, bytes, bytes.Length, "@" + real_file_path) != 0) { return(LuaAPI.luaL_error(L, String.Format("error loading module {0} from CustomLoader, {1}", LuaAPI.lua_tostring(L, 1), LuaAPI.lua_tostring(L, -1)))); } return(1); } } LuaAPI.lua_pushstring(L, string.Format( "\n\tno such file '{0}' in CustomLoaders!", filename)); return(1); }
static int _m_GetLuaText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.LuaEnvMgr gen_to_be_invoked = (QP.Framework.LuaEnvMgr)translator.FastGetCSObj(L, 1); { string _path = LuaAPI.lua_tostring(L, 2); byte[] gen_ret = gen_to_be_invoked.GetLuaText(_path); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_FindLast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.List <string> gen_to_be_invoked = (System.Collections.Generic.List <string>)translator.FastGetCSObj(L, 1); { System.Predicate <string> _match = translator.GetDelegate <System.Predicate <string> >(L, 2); string gen_ret = gen_to_be_invoked.FindLast(_match); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetSkillResPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SkillManager gen_to_be_invoked = (UnityMMO.SkillManager)translator.FastGetCSObj(L, 1); { int _skillID = LuaAPI.xlua_tointeger(L, 2); string gen_ret = gen_to_be_invoked.GetSkillResPath(_skillID); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ListLIDToBID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CentralServer.Match.BattleStaging __cl_gen_to_be_invoked = (CentralServer.Match.BattleStaging)translator.FastGetCSObj(L, 1); { uint lid = LuaAPI.xlua_touint(L, 2); string __cl_gen_ret = __cl_gen_to_be_invoked.ListLIDToBID(lid); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ReadBytes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.IO.BinaryReader gen_to_be_invoked = (System.IO.BinaryReader)translator.FastGetCSObj(L, 1); { int _count = LuaAPI.xlua_tointeger(L, 2); byte[] gen_ret = gen_to_be_invoked.ReadBytes(_count); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AppendStrWithSB(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Casinos.CasinosContext gen_to_be_invoked = (Casinos.CasinosContext)translator.FastGetCSObj(L, 1); { string[] _strs = translator.GetParams <string>(L, 2); string gen_ret = gen_to_be_invoked.AppendStrWithSB(_strs); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.IO.BsonDocumentReader gen_to_be_invoked = (MongoDB.Bson.IO.BsonDocumentReader)translator.FastGetCSObj(L, 1); { MongoDB.Bson.IO.INameDecoder _nameDecoder = (MongoDB.Bson.IO.INameDecoder)translator.GetObject(L, 2, typeof(MongoDB.Bson.IO.INameDecoder)); string gen_ret = gen_to_be_invoked.ReadName(_nameDecoder); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadCString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.IO.BsonStream gen_to_be_invoked = (MongoDB.Bson.IO.BsonStream)translator.FastGetCSObj(L, 1); { System.Text.UTF8Encoding _encoding = (System.Text.UTF8Encoding)translator.GetObject(L, 2, typeof(System.Text.UTF8Encoding)); string gen_ret = gen_to_be_invoked.ReadCString(_encoding); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Parse(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.UBBParser gen_to_be_invoked = (FairyGUI.Utils.UBBParser)translator.FastGetCSObj(L, 1); { string _text = LuaAPI.lua_tostring(L, 2); string gen_ret = gen_to_be_invoked.Parse(_text); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public bool __Gen_Delegate_Imp22(object p0, string p1, object[] p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.PushAny(L, p0); LuaAPI.lua_pushstring(L, p1); translator.Push(L, p2); PCall(L, 3, 1, errFunc); bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_GetName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); { Unity.Entities.Entity _entity; translator.Get(L, 2, out _entity); string gen_ret = gen_to_be_invoked.GetName(_entity); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetTransformPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AvatarMask gen_to_be_invoked = (UnityEngine.AvatarMask)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetTransformPath(_index); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CombineWWWStreamingAssetsPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Casinos.PathMgr gen_to_be_invoked = (Casinos.PathMgr)translator.FastGetCSObj(L, 1); { string _path = LuaAPI.lua_tostring(L, 2); string gen_ret = gen_to_be_invoked.CombineWWWStreamingAssetsPath(_path); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNameByUID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { long _uid = LuaAPI.lua_toint64(L, 2); string gen_ret = gen_to_be_invoked.GetNameByUID(_uid); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Validate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UIInput gen_to_be_invoked = (UIInput)translator.FastGetCSObj(L, 1); { string _val = LuaAPI.lua_tostring(L, 2); string gen_ret = gen_to_be_invoked.Validate(_val); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }