| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class GvGMarkWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(GvGMark), typeof(System.Object));
- L.RegFunction("ToJson", ToJson);
- L.RegFunction("New", _CreateGvGMark);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("m_nMarkid", get_m_nMarkid, set_m_nMarkid);
- L.RegVar("m_nMarkNum", get_m_nMarkNum, set_m_nMarkNum);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateGvGMark(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1)
- {
- JSONObject arg0 = (JSONObject)ToLua.CheckObject<JSONObject>(L, 1);
- GvGMark obj = new GvGMark(arg0);
- ToLua.PushObject(L, obj);
- return 1;
- }
- else if (count == 2)
- {
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
- GvGMark obj = new GvGMark(arg0, arg1);
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GvGMark.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ToJson(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- GvGMark obj = (GvGMark)ToLua.CheckObject<GvGMark>(L, 1);
- JSONObject o = obj.ToJson();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_m_nMarkid(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- GvGMark obj = (GvGMark)o;
- int ret = obj.m_nMarkid;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkid on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_m_nMarkNum(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- GvGMark obj = (GvGMark)o;
- int ret = obj.m_nMarkNum;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkNum on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_m_nMarkid(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- GvGMark obj = (GvGMark)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.m_nMarkid = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkid on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_m_nMarkNum(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- GvGMark obj = (GvGMark)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.m_nMarkNum = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_nMarkNum on a nil value");
- }
- }
- }
|