| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class ServerFighterParamWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(ServerFighterParam), typeof(System.Object));
- L.RegFunction("New", _CreateServerFighterParam);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("uid", get_uid, set_uid);
- L.RegVar("hp", get_hp, set_hp);
- L.RegVar("sp", get_sp, set_sp);
- L.RegVar("hpPercent", get_hpPercent, set_hpPercent);
- L.RegVar("spPercent", get_spPercent, set_spPercent);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateServerFighterParam(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 5)
- {
- long arg0 = LuaDLL.tolua_checkint64(L, 1);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
- int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
- float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
- float arg4 = (float)LuaDLL.luaL_checknumber(L, 5);
- ServerFighterParam obj = new ServerFighterParam(arg0, arg1, arg2, arg3, arg4);
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ServerFighterParam.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_uid(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- long ret = obj.uid;
- LuaDLL.tolua_pushint64(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_hp(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- int ret = obj.hp;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index hp on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_sp(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- int ret = obj.sp;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sp on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_hpPercent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- float ret = obj.hpPercent;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index hpPercent on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_spPercent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- float ret = obj.spPercent;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index spPercent on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_uid(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- long arg0 = LuaDLL.tolua_checkint64(L, 2);
- obj.uid = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_hp(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.hp = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index hp on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_sp(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.sp = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sp on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_hpPercent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.hpPercent = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index hpPercent on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_spPercent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- ServerFighterParam obj = (ServerFighterParam)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.spPercent = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index spPercent on a nil value");
- }
- }
- }
|