| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class LocalizedSpriteCfgWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(LocalizedSpriteCfg), typeof(System.Object));
- L.RegFunction("GetSetNativeSize", GetSetNativeSize);
- L.RegFunction("New", _CreateLocalizedSpriteCfg);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("key", get_key, set_key);
- L.RegVar("Language", get_Language, set_Language);
- L.RegVar("AssetPath", get_AssetPath, set_AssetPath);
- L.RegVar("OtherSetting", get_OtherSetting, set_OtherSetting);
- L.RegVar("SetNativeSize", get_SetNativeSize, set_SetNativeSize);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateLocalizedSpriteCfg(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- LocalizedSpriteCfg obj = new LocalizedSpriteCfg();
- ToLua.PushObject(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LocalizedSpriteCfg.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetSetNativeSize(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)ToLua.CheckObject<LocalizedSpriteCfg>(L, 1);
- bool o = obj.GetSetNativeSize();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_key(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string ret = obj.key;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Language(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string ret = obj.Language;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Language on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_AssetPath(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string ret = obj.AssetPath;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index AssetPath on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_OtherSetting(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string ret = obj.OtherSetting;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index OtherSetting on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_SetNativeSize(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string ret = obj.SetNativeSize;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index SetNativeSize on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_key(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.key = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Language(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.Language = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Language on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_AssetPath(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.AssetPath = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index AssetPath on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_OtherSetting(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.OtherSetting = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index OtherSetting on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_SetNativeSize(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LocalizedSpriteCfg obj = (LocalizedSpriteCfg)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.SetNativeSize = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index SetNativeSize on a nil value");
- }
- }
- }
|