static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.GoodsMagicEquip __cl_gen_ret = new xc.GoodsMagicEquip(); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Net.PkgGoodsInfo>(L, 3)) { uint typeId = LuaAPI.xlua_touint(L, 2); Net.PkgGoodsInfo goods = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo)); xc.GoodsMagicEquip __cl_gen_ret = new xc.GoodsMagicEquip(typeId, goods); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Net.PkgMagicEquip>(L, 3)) { uint typeId = LuaAPI.xlua_touint(L, 2); Net.PkgMagicEquip equip = (Net.PkgMagicEquip)translator.GetObject(L, 3, typeof(Net.PkgMagicEquip)); xc.GoodsMagicEquip __cl_gen_ret = new xc.GoodsMagicEquip(typeId, equip); translator.Push(L, __cl_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 xc.GoodsMagicEquip constructor!")); }
static int _m_PlayQueued(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string animation = LuaAPI.lua_tostring(L, 2); UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.PlayQueued(animation); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.QueueMode>(L, 3)) { string animation = LuaAPI.lua_tostring(L, 2); UnityEngine.QueueMode queue; translator.Get(L, 3, out queue); UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.PlayQueued(animation, queue); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.QueueMode>(L, 3) && translator.Assignable <UnityEngine.PlayMode>(L, 4)) { string animation = LuaAPI.lua_tostring(L, 2); UnityEngine.QueueMode queue; translator.Get(L, 3, out queue); UnityEngine.PlayMode mode; translator.Get(L, 4, out mode); UnityEngine.AnimationState __cl_gen_ret = __cl_gen_to_be_invoked.PlayQueued(animation, queue, mode); translator.Push(L, __cl_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 UnityEngine.Animation.PlayQueued!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Game.AssetType>(L, 3)) { string res = LuaAPI.lua_tostring(L, 2); Game.AssetType assetType; translator.Get(L, 3, out assetType); Game.BasicModel __cl_gen_ret = new Game.BasicModel(res, assetType); translator.Push(L, __cl_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 Game.BasicModel constructor!")); }
static int _m_InstanceBatchAssetAsyncByLabel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DotEngine.Asset.AssetService gen_to_be_invoked = (DotEngine.Asset.AssetService)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 3)) { string _label = LuaAPI.lua_tostring(L, 2); DotEngine.Asset.OnBatchAssetLoadComplete _batchComplete = translator.GetDelegate <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 3); var gen_ret = gen_to_be_invoked.InstanceBatchAssetAsyncByLabel(_label, _batchComplete); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 3) && translator.Assignable <object>(L, 4)) { string _label = LuaAPI.lua_tostring(L, 2); DotEngine.Asset.OnBatchAssetLoadComplete _batchComplete = translator.GetDelegate <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 3); object _userData = translator.GetObject(L, 4, typeof(object)); var gen_ret = gen_to_be_invoked.InstanceBatchAssetAsyncByLabel(_label, _batchComplete, _userData); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <DotEngine.Asset.OnAssetLoadComplete>(L, 3) && translator.Assignable <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 4) && translator.Assignable <object>(L, 5)) { string _label = LuaAPI.lua_tostring(L, 2); DotEngine.Asset.OnAssetLoadComplete _complete = translator.GetDelegate <DotEngine.Asset.OnAssetLoadComplete>(L, 3); DotEngine.Asset.OnBatchAssetLoadComplete _batchComplete = translator.GetDelegate <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 4); object _userData = translator.GetObject(L, 5, typeof(object)); var gen_ret = gen_to_be_invoked.InstanceBatchAssetAsyncByLabel(_label, _complete, _batchComplete, _userData); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <DotEngine.Asset.OnAssetLoadComplete>(L, 3) && translator.Assignable <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 4) && translator.Assignable <DotEngine.Asset.AssetLoaderPriority>(L, 5) && translator.Assignable <object>(L, 6)) { string _label = LuaAPI.lua_tostring(L, 2); DotEngine.Asset.OnAssetLoadComplete _complete = translator.GetDelegate <DotEngine.Asset.OnAssetLoadComplete>(L, 3); DotEngine.Asset.OnBatchAssetLoadComplete _batchComplete = translator.GetDelegate <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 4); DotEngine.Asset.AssetLoaderPriority _priority; translator.Get(L, 5, out _priority); object _userData = translator.GetObject(L, 6, typeof(object)); var gen_ret = gen_to_be_invoked.InstanceBatchAssetAsyncByLabel(_label, _complete, _batchComplete, _priority, _userData); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 8 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <DotEngine.Asset.OnAssetLoadProgress>(L, 3) && translator.Assignable <DotEngine.Asset.OnAssetLoadComplete>(L, 4) && translator.Assignable <DotEngine.Asset.OnBatchAssetsLoadProgress>(L, 5) && translator.Assignable <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 6) && translator.Assignable <DotEngine.Asset.AssetLoaderPriority>(L, 7) && translator.Assignable <object>(L, 8)) { string _label = LuaAPI.lua_tostring(L, 2); DotEngine.Asset.OnAssetLoadProgress _progress = translator.GetDelegate <DotEngine.Asset.OnAssetLoadProgress>(L, 3); DotEngine.Asset.OnAssetLoadComplete _complete = translator.GetDelegate <DotEngine.Asset.OnAssetLoadComplete>(L, 4); DotEngine.Asset.OnBatchAssetsLoadProgress _batchProgress = translator.GetDelegate <DotEngine.Asset.OnBatchAssetsLoadProgress>(L, 5); DotEngine.Asset.OnBatchAssetLoadComplete _batchComplete = translator.GetDelegate <DotEngine.Asset.OnBatchAssetLoadComplete>(L, 6); DotEngine.Asset.AssetLoaderPriority _priority; translator.Get(L, 7, out _priority); object _userData = translator.GetObject(L, 8, typeof(object)); var gen_ret = gen_to_be_invoked.InstanceBatchAssetAsyncByLabel(_label, _progress, _complete, _batchProgress, _batchComplete, _priority, _userData); 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 DotEngine.Asset.AssetService.InstanceBatchAssetAsyncByLabel!")); }
static int _m_SetGlobalMatrix_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <UnityEngine.Matrix4x4>(L, 2)) { int nameID = LuaAPI.xlua_tointeger(L, 1); UnityEngine.Matrix4x4 mat; translator.Get(L, 2, out mat); UnityEngine.Shader.SetGlobalMatrix(nameID, mat); return(0); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Matrix4x4>(L, 2)) { string propertyName = LuaAPI.lua_tostring(L, 1); UnityEngine.Matrix4x4 mat; translator.Get(L, 2, out mat); UnityEngine.Shader.SetGlobalMatrix(propertyName, mat); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalMatrix!")); }
static int _m_SetLoops(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DG.Tweening.Tweener __cl_gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int loops = LuaAPI.xlua_tointeger(L, 2); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetLoops(loops); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <DG.Tweening.LoopType>(L, 3)) { int loops = LuaAPI.xlua_tointeger(L, 2); DG.Tweening.LoopType loopType; translator.Get(L, 3, out loopType); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetLoops(loops, loopType); translator.Push(L, __cl_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 DG.Tweening.Tweener.SetLoops!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new LitJson.JsonData(); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _boolean = LuaAPI.lua_toboolean(L, 2); var gen_ret = new LitJson.JsonData(_boolean); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { double _number = LuaAPI.lua_tonumber(L, 2); var gen_ret = new LitJson.JsonData(_number); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _number = LuaAPI.xlua_tointeger(L, 2); var gen_ret = new LitJson.JsonData(_number); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) { long _number = LuaAPI.lua_toint64(L, 2); var gen_ret = new LitJson.JsonData(_number); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <object>(L, 2)) { object _obj = translator.GetObject(L, 2, typeof(object)); var gen_ret = new LitJson.JsonData(_obj); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _str = LuaAPI.lua_tostring(L, 2); var gen_ret = new LitJson.JsonData(_str); 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 LitJson.JsonData constructor!")); }
static int _m_LoadAsyn(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Asset.AssetService __cl_gen_to_be_invoked = (JW.Framework.Asset.AssetService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) { int type = LuaAPI.xlua_tointeger(L, 2); int loadPriority = LuaAPI.xlua_tointeger(L, 3); string filename = LuaAPI.lua_tostring(L, 4); int life = LuaAPI.xlua_tointeger(L, 5); JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback)); int cnt = LuaAPI.xlua_tointeger(L, 7); __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, callback, cnt); return(0); } if (__gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <JW.Framework.Asset.IAssetLoadCallback>(L, 6)) { int type = LuaAPI.xlua_tointeger(L, 2); int loadPriority = LuaAPI.xlua_tointeger(L, 3); string filename = LuaAPI.lua_tostring(L, 4); int life = LuaAPI.xlua_tointeger(L, 5); JW.Framework.Asset.IAssetLoadCallback callback = (JW.Framework.Asset.IAssetLoadCallback)translator.GetObject(L, 6, typeof(JW.Framework.Asset.IAssetLoadCallback)); __cl_gen_to_be_invoked.LoadAsyn(type, loadPriority, filename, life, callback); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.Framework.Asset.AssetService.LoadAsyn!")); }
static int _m_SetPackageItemExtension_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Type>(L, 2)) { string _url = LuaAPI.lua_tostring(L, 1); System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); FairyGUI.UIObjectFactory.SetPackageItemExtension( _url, _type); return(0); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <FairyGUI.UIObjectFactory.GComponentCreator>(L, 2)) { string _url = LuaAPI.lua_tostring(L, 1); FairyGUI.UIObjectFactory.GComponentCreator _creator = translator.GetDelegate <FairyGUI.UIObjectFactory.GComponentCreator>(L, 2); FairyGUI.UIObjectFactory.SetPackageItemExtension( _url, _creator); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.UIObjectFactory.SetPackageItemExtension!")); }
static int _m_Add_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate.Callback>(L, 2)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate.Callback callback = translator.GetDelegate <EventDelegate.Callback>(L, 2); EventDelegate __cl_gen_ret = EventDelegate.Add(list, callback); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate>(L, 2)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate ev = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); EventDelegate.Add(list, ev); return(0); } if (__gen_param_count == 3 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate.Callback>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate.Callback callback = translator.GetDelegate <EventDelegate.Callback>(L, 2); bool oneShot = LuaAPI.lua_toboolean(L, 3); EventDelegate __cl_gen_ret = EventDelegate.Add(list, callback, oneShot); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && translator.Assignable <System.Collections.Generic.List <EventDelegate> >(L, 1) && translator.Assignable <EventDelegate>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Collections.Generic.List <EventDelegate> list = (System.Collections.Generic.List <EventDelegate>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <EventDelegate>)); EventDelegate ev = (EventDelegate)translator.GetObject(L, 2, typeof(EventDelegate)); bool oneShot = LuaAPI.lua_toboolean(L, 3); EventDelegate.Add(list, ev, oneShot); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to EventDelegate.Add!")); }
static int _m_Construct_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3[]>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <PF.OnPathDelegate[]>(L, 3) && translator.Assignable <PF.OnPathDelegate>(L, 4)) { UnityEngine.Vector3[] _startPoints = (UnityEngine.Vector3[])translator.GetObject(L, 1, typeof(UnityEngine.Vector3[])); UnityEngine.Vector3 _target; translator.Get(L, 2, out _target); PF.OnPathDelegate[] _callbackDelegates = (PF.OnPathDelegate[])translator.GetObject(L, 3, typeof(PF.OnPathDelegate[])); PF.OnPathDelegate _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 4); PF.MultiTargetPath gen_ret = PF.MultiTargetPath.Construct( _startPoints, _target, _callbackDelegates, _callback); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3[]>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <PF.OnPathDelegate[]>(L, 3)) { UnityEngine.Vector3[] _startPoints = (UnityEngine.Vector3[])translator.GetObject(L, 1, typeof(UnityEngine.Vector3[])); UnityEngine.Vector3 _target; translator.Get(L, 2, out _target); PF.OnPathDelegate[] _callbackDelegates = (PF.OnPathDelegate[])translator.GetObject(L, 3, typeof(PF.OnPathDelegate[])); PF.MultiTargetPath gen_ret = PF.MultiTargetPath.Construct( _startPoints, _target, _callbackDelegates); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3[]>(L, 2) && translator.Assignable <PF.OnPathDelegate[]>(L, 3) && translator.Assignable <PF.OnPathDelegate>(L, 4)) { UnityEngine.Vector3 _start; translator.Get(L, 1, out _start); UnityEngine.Vector3[] _targets = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); PF.OnPathDelegate[] _callbackDelegates = (PF.OnPathDelegate[])translator.GetObject(L, 3, typeof(PF.OnPathDelegate[])); PF.OnPathDelegate _callback = translator.GetDelegate <PF.OnPathDelegate>(L, 4); PF.MultiTargetPath gen_ret = PF.MultiTargetPath.Construct( _start, _targets, _callbackDelegates, _callback); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3[]>(L, 2) && translator.Assignable <PF.OnPathDelegate[]>(L, 3)) { UnityEngine.Vector3 _start; translator.Get(L, 1, out _start); UnityEngine.Vector3[] _targets = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); PF.OnPathDelegate[] _callbackDelegates = (PF.OnPathDelegate[])translator.GetObject(L, 3, typeof(PF.OnPathDelegate[])); PF.MultiTargetPath gen_ret = PF.MultiTargetPath.Construct( _start, _targets, _callbackDelegates); 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.MultiTargetPath.Construct!")); }
static int _m_DrawLine_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Debug.DrawLine(start, end); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); UnityEngine.Debug.DrawLine(start, end, color); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); float duration = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Debug.DrawLine(start, end, color, duration); return(0); } if (__gen_param_count == 5 && translator.Assignable <UnityEngine.Vector3>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) { UnityEngine.Vector3 start; translator.Get(L, 1, out start); UnityEngine.Vector3 end; translator.Get(L, 2, out end); UnityEngine.Color color; translator.Get(L, 3, out color); float duration = (float)LuaAPI.lua_tonumber(L, 4); bool depthTest = LuaAPI.lua_toboolean(L, 5); UnityEngine.Debug.DrawLine(start, end, color, duration, depthTest); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.DrawLine!")); }
static int _m_AssertFormat_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count >= 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable <object>(L, 3))) { bool condition = LuaAPI.lua_toboolean(L, 1); string format = LuaAPI.lua_tostring(L, 2); object[] args = translator.GetParams <object>(L, 3); UnityEngine.Debug.AssertFormat(condition, format, args); return(0); } if (__gen_param_count >= 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1) && translator.Assignable <UnityEngine.Object>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable <object>(L, 4))) { bool condition = LuaAPI.lua_toboolean(L, 1); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); string format = LuaAPI.lua_tostring(L, 3); object[] args = translator.GetParams <object>(L, 4); UnityEngine.Debug.AssertFormat(condition, context, format, args); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.AssertFormat!")); }
static int _m_SetResolution_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { int _width = LuaAPI.xlua_tointeger(L, 1); int _height = LuaAPI.xlua_tointeger(L, 2); bool _fullscreen = LuaAPI.lua_toboolean(L, 3); UnityEngine.Screen.SetResolution(_width, _height, _fullscreen); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _width = LuaAPI.xlua_tointeger(L, 1); int _height = LuaAPI.xlua_tointeger(L, 2); bool _fullscreen = LuaAPI.lua_toboolean(L, 3); int _preferredRefreshRate = LuaAPI.xlua_tointeger(L, 4); UnityEngine.Screen.SetResolution(_width, _height, _fullscreen, _preferredRefreshRate); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.FullScreenMode>(L, 3)) { int _width = LuaAPI.xlua_tointeger(L, 1); int _height = LuaAPI.xlua_tointeger(L, 2); UnityEngine.FullScreenMode _fullscreenMode; translator.Get(L, 3, out _fullscreenMode); UnityEngine.Screen.SetResolution(_width, _height, _fullscreenMode); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.FullScreenMode>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _width = LuaAPI.xlua_tointeger(L, 1); int _height = LuaAPI.xlua_tointeger(L, 2); UnityEngine.FullScreenMode _fullscreenMode; translator.Get(L, 3, out _fullscreenMode); int _preferredRefreshRate = LuaAPI.xlua_tointeger(L, 4); UnityEngine.Screen.SetResolution(_width, _height, _fullscreenMode, _preferredRefreshRate); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Screen.SetResolution!")); }
static int _m_Stop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.Stop( ); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool _withChildren = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.Stop(_withChildren); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystemStopBehavior>(L, 3)) { bool _withChildren = LuaAPI.lua_toboolean(L, 2); UnityEngine.ParticleSystemStopBehavior _stopBehavior; translator.Get(L, 3, out _stopBehavior); gen_to_be_invoked.Stop(_withChildren, _stopBehavior); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Stop!")); }
static int _m_Sort(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); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.Sort( ); return(0); } if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.IComparer <string> >(L, 2)) { System.Collections.Generic.IComparer <string> _comparer = (System.Collections.Generic.IComparer <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer <string>)); gen_to_be_invoked.Sort( _comparer); return(0); } if (gen_param_count == 2 && translator.Assignable <System.Comparison <string> >(L, 2)) { System.Comparison <string> _comparison = translator.GetDelegate <System.Comparison <string> >(L, 2); gen_to_be_invoked.Sort( _comparison); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Collections.Generic.IComparer <string> >(L, 4)) { int _index = LuaAPI.xlua_tointeger(L, 2); int _count = LuaAPI.xlua_tointeger(L, 3); System.Collections.Generic.IComparer <string> _comparer = (System.Collections.Generic.IComparer <string>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer <string>)); gen_to_be_invoked.Sort( _index, _count, _comparer); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List<string>.Sort!")); }
static int _m_ChangeEndValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DG.Tweening.Tweener __cl_gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 3 && translator.Assignable <object>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { object newEndValue = translator.GetObject(L, 2, typeof(object)); bool snapStartValue = LuaAPI.lua_toboolean(L, 3); DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.ChangeEndValue(newEndValue, snapStartValue); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 4 && translator.Assignable <object>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { object newEndValue = translator.GetObject(L, 2, typeof(object)); float newDuration = (float)LuaAPI.lua_tonumber(L, 3); bool snapStartValue = LuaAPI.lua_toboolean(L, 4); DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.ChangeEndValue(newEndValue, newDuration, snapStartValue); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && translator.Assignable <object>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { object newEndValue = translator.GetObject(L, 2, typeof(object)); float newDuration = (float)LuaAPI.lua_tonumber(L, 3); DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.ChangeEndValue(newEndValue, newDuration); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <object>(L, 2)) { object newEndValue = translator.GetObject(L, 2, typeof(object)); DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.ChangeEndValue(newEndValue); translator.Push(L, __cl_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 DG.Tweening.Tweener.ChangeEndValue!")); }
static int _m_BinarySearch(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); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _item = LuaAPI.lua_tostring(L, 2); int gen_ret = gen_to_be_invoked.BinarySearch( _item); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Collections.Generic.IComparer <string> >(L, 3)) { string _item = LuaAPI.lua_tostring(L, 2); System.Collections.Generic.IComparer <string> _comparer = (System.Collections.Generic.IComparer <string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer <string>)); int gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Collections.Generic.IComparer <string> >(L, 5)) { int _index = LuaAPI.xlua_tointeger(L, 2); int _count = LuaAPI.xlua_tointeger(L, 3); string _item = LuaAPI.lua_tostring(L, 4); System.Collections.Generic.IComparer <string> _comparer = (System.Collections.Generic.IComparer <string>)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer <string>)); int gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer); LuaAPI.xlua_pushinteger(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 System.Collections.Generic.List<string>.BinarySearch!")); }
static int _m_SetEase(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DG.Tweening.Tweener __cl_gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <DG.Tweening.Ease>(L, 2)) { DG.Tweening.Ease ease; translator.Get(L, 2, out ease); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetEase(ease); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <UnityEngine.AnimationCurve>(L, 2)) { UnityEngine.AnimationCurve animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetEase(animCurve); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <DG.Tweening.EaseFunction>(L, 2)) { DG.Tweening.EaseFunction customEase = translator.GetDelegate <DG.Tweening.EaseFunction>(L, 2); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetEase(customEase); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && translator.Assignable <DG.Tweening.Ease>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { DG.Tweening.Ease ease; translator.Get(L, 2, out ease); float overshoot = (float)LuaAPI.lua_tonumber(L, 3); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetEase(ease, overshoot); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 4 && translator.Assignable <DG.Tweening.Ease>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { DG.Tweening.Ease ease; translator.Get(L, 2, out ease); float amplitude = (float)LuaAPI.lua_tonumber(L, 3); float period = (float)LuaAPI.lua_tonumber(L, 4); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetEase(ease, amplitude, period); translator.Push(L, __cl_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 DG.Tweening.Tweener.SetEase!")); }
static int _m_UnEscapeURL_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) { string s = LuaAPI.lua_tostring(L, 1); string __cl_gen_ret = UnityEngine.WWW.UnEscapeURL(s); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Text.Encoding>(L, 2)) { string s = LuaAPI.lua_tostring(L, 1); System.Text.Encoding e = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); string __cl_gen_ret = UnityEngine.WWW.UnEscapeURL(s, e); LuaAPI.lua_pushstring(L, __cl_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 UnityEngine.WWW.UnEscapeURL!")); }
static int _m_MarkAsUsed_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); int version = LuaAPI.xlua_tointeger(L, 2); bool __cl_gen_ret = UnityEngine.Caching.MarkAsUsed(url, version); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Hash128>(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); UnityEngine.Hash128 hash; translator.Get(L, 2, out hash); bool __cl_gen_ret = UnityEngine.Caching.MarkAsUsed(url, hash); LuaAPI.lua_pushboolean(L, __cl_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 UnityEngine.Caching.MarkAsUsed!")); }
static int _m_GetAudioClipCompressed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WWW __cl_gen_to_be_invoked = (UnityEngine.WWW)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 1) { UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed( ); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool threeD = LuaAPI.lua_toboolean(L, 2); UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.AudioType>(L, 3)) { bool threeD = LuaAPI.lua_toboolean(L, 2); UnityEngine.AudioType audioType; translator.Get(L, 3, out audioType); UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD, audioType); translator.Push(L, __cl_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 UnityEngine.WWW.GetAudioClipCompressed!")); }
static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Plane gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { var gen_ret = gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _format = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.ToString(_format); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return(1); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.IFormatProvider>(L, 3)) { string _format = LuaAPI.lua_tostring(L, 2); System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); var gen_ret = gen_to_be_invoked.ToString(_format, _formatProvider); 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)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Plane.ToString!")); }
static int _m_LoadFromCacheOrDownload_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); int version = LuaAPI.xlua_tointeger(L, 2); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, version); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string url = LuaAPI.lua_tostring(L, 1); int version = LuaAPI.xlua_tointeger(L, 2); uint crc = LuaAPI.xlua_touint(L, 3); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, version, crc); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Hash128>(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); UnityEngine.Hash128 hash; translator.Get(L, 2, out hash); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, hash); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Hash128>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string url = LuaAPI.lua_tostring(L, 1); UnityEngine.Hash128 hash; translator.Get(L, 2, out hash); uint crc = LuaAPI.xlua_touint(L, 3); UnityEngine.WWW __cl_gen_ret = UnityEngine.WWW.LoadFromCacheOrDownload(url, hash, crc); translator.Push(L, __cl_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 UnityEngine.WWW.LoadFromCacheOrDownload!")); }
static int _m_CrossFade(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string animation = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.CrossFade(animation); return(0); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string animation = LuaAPI.lua_tostring(L, 2); float fadeLength = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.CrossFade(animation, fadeLength); return(0); } if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.PlayMode>(L, 4)) { string animation = LuaAPI.lua_tostring(L, 2); float fadeLength = (float)LuaAPI.lua_tonumber(L, 3); UnityEngine.PlayMode mode; translator.Get(L, 4, out mode); __cl_gen_to_be_invoked.CrossFade(animation, fadeLength, mode); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.CrossFade!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string url = LuaAPI.lua_tostring(L, 2); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.WWWForm>(L, 3)) { string url = LuaAPI.lua_tostring(L, 2); UnityEngine.WWWForm form = (UnityEngine.WWWForm)translator.GetObject(L, 3, typeof(UnityEngine.WWWForm)); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, form); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string url = LuaAPI.lua_tostring(L, 2); byte[] postData = LuaAPI.lua_tobytes(L, 3); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, postData); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Collections.Generic.Dictionary <string, string> >(L, 4)) { string url = LuaAPI.lua_tostring(L, 2); byte[] postData = LuaAPI.lua_tobytes(L, 3); System.Collections.Generic.Dictionary <string, string> headers = (System.Collections.Generic.Dictionary <string, string>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary <string, string>)); UnityEngine.WWW __cl_gen_ret = new UnityEngine.WWW(url, postData, headers); translator.Push(L, __cl_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 UnityEngine.WWW constructor!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int width = LuaAPI.xlua_tointeger(L, 2); int height = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Texture2D __cl_gen_ret = new UnityEngine.Texture2D(width, height); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) { int width = LuaAPI.xlua_tointeger(L, 2); int height = LuaAPI.xlua_tointeger(L, 3); UnityEngine.TextureFormat format; translator.Get(L, 4, out format); bool mipmap = LuaAPI.lua_toboolean(L, 5); UnityEngine.Texture2D __cl_gen_ret = new UnityEngine.Texture2D(width, height, format, mipmap); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) { int width = LuaAPI.xlua_tointeger(L, 2); int height = LuaAPI.xlua_tointeger(L, 3); UnityEngine.TextureFormat format; translator.Get(L, 4, out format); bool mipmap = LuaAPI.lua_toboolean(L, 5); bool linear = LuaAPI.lua_toboolean(L, 6); UnityEngine.Texture2D __cl_gen_ret = new UnityEngine.Texture2D(width, height, format, mipmap, linear); translator.Push(L, __cl_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 UnityEngine.Texture2D constructor!")); }
static int _m_TriggerSubEmitter(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystem.Particle>(L, 3)) { int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ParticleSystem.Particle _particle; translator.Get(L, 3, out _particle); gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, ref _particle); translator.Push(L, _particle); translator.Update(L, 3, _particle); return(1); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> >(L, 3)) { int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> _particles = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)); gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, _particles); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerSubEmitter!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { uint cmd = LuaAPI.xlua_touint(L, 2); Maria.Command __cl_gen_ret = new Maria.Command(cmd); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.GameObject>(L, 3)) { uint cmd = LuaAPI.xlua_touint(L, 2); UnityEngine.GameObject orgin = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); Maria.Command __cl_gen_ret = new Maria.Command(cmd, orgin); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.GameObject>(L, 3) && translator.Assignable <Maria.Message>(L, 4)) { uint cmd = LuaAPI.xlua_touint(L, 2); UnityEngine.GameObject orgin = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); Maria.Message msg = (Maria.Message)translator.GetObject(L, 4, typeof(Maria.Message)); Maria.Command __cl_gen_ret = new Maria.Command(cmd, orgin, msg); translator.Push(L, __cl_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 Maria.Command constructor!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 14 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 14)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); uint BubbleId = LuaAPI.xlua_touint(L, 13); uint PhotoFrameId = LuaAPI.xlua_touint(L, 14); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId, PhotoFrameId); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 13 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); uint BubbleId = LuaAPI.xlua_touint(L, 13); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 12 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 11 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 2)) { Net.PkgPlayerBrief player_brief = (Net.PkgPlayerBrief)translator.GetObject(L, 2, typeof(Net.PkgPlayerBrief)); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(player_brief); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(); translator.Push(L, __cl_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 xc.FriendsInfo constructor!")); }