| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class BattleStatisticsWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(BattleStatistics), typeof(System.Object));
- L.RegFunction("Start", Start);
- L.RegFunction("End", End);
- L.RegFunction("Clear", Clear);
- L.RegFunction("GetFighterStatistics", GetFighterStatistics);
- L.RegFunction("AnalyzeData", AnalyzeData);
- L.RegFunction("New", _CreateBattleStatistics);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("BeginTime", get_BeginTime, null);
- L.RegVar("EndTime", get_EndTime, null);
- L.RegVar("FriendStatistics", get_FriendStatistics, null);
- L.RegVar("EnemyStatistics", get_EnemyStatistics, null);
- L.RegVar("Exist", get_Exist, null);
- L.RegVar("PassedTime", get_PassedTime, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateBattleStatistics(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- BattleStatistics obj = new BattleStatistics();
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: BattleStatistics.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Start(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- BattleStatistics obj = (BattleStatistics)ToLua.CheckObject<BattleStatistics>(L, 1);
- obj.Start();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int End(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- BattleStatistics obj = (BattleStatistics)ToLua.CheckObject<BattleStatistics>(L, 1);
- obj.End();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Clear(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- BattleStatistics obj = (BattleStatistics)ToLua.CheckObject<BattleStatistics>(L, 1);
- obj.Clear();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetFighterStatistics(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- BattleStatistics obj = (BattleStatistics)ToLua.CheckObject<BattleStatistics>(L, 1);
- Fighter arg0 = (Fighter)ToLua.CheckObject<Fighter>(L, 2);
- FighterStatistics o = obj.GetFighterStatistics(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AnalyzeData(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- BattleStatistics obj = (BattleStatistics)ToLua.CheckObject<BattleStatistics>(L, 1);
- obj.AnalyzeData();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_BeginTime(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- float ret = obj.BeginTime;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index BeginTime on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_EndTime(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- float ret = obj.EndTime;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index EndTime on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_FriendStatistics(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- System.Collections.Generic.List<FighterStatistics> ret = obj.FriendStatistics;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index FriendStatistics on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_EnemyStatistics(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- System.Collections.Generic.List<FighterStatistics> ret = obj.EnemyStatistics;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index EnemyStatistics on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Exist(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- bool ret = obj.Exist;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Exist on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_PassedTime(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- BattleStatistics obj = (BattleStatistics)o;
- float ret = obj.PassedTime;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index PassedTime on a nil value");
- }
- }
- }
|