461 lines
19 KiB
C#
461 lines
19 KiB
C#
#if USE_UNI_LUA
|
|
using LuaAPI = UniLua.Lua;
|
|
using RealStatePtr = UniLua.ILuaState;
|
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|
#else
|
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|
using RealStatePtr = System.IntPtr;
|
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
public class UIBasicSpriteWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(UIBasicSprite);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 15, 10);
|
|
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "flip", _g_get_flip);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillDirection", _g_get_fillDirection);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillAmount", _g_get_fillAmount);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "invert", _g_get_invert);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBorder", _g_get_hasBorder);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "premultipliedAlpha", _g_get_premultipliedAlpha);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelSize", _g_get_pixelSize);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "centerType", _g_get_centerType);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "leftType", _g_get_leftType);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rightType", _g_get_rightType);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomType", _g_get_bottomType);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "topType", _g_get_topType);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "flip", _s_set_flip);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillDirection", _s_set_fillDirection);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillAmount", _s_set_fillAmount);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "invert", _s_set_invert);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "centerType", _s_set_centerType);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "leftType", _s_set_leftType);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rightType", _s_set_rightType);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomType", _s_set_bottomType);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "topType", _s_set_topType);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "UIBasicSprite does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_type(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteType(L, gen_to_be_invoked.type);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_flip(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteFlip(L, gen_to_be_invoked.flip);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_fillDirection(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteFillDirection(L, gen_to_be_invoked.fillDirection);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_fillAmount(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fillAmount);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_minWidth(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minWidth);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_minHeight(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minHeight);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_invert(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.invert);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_hasBorder(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBorder);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_premultipliedAlpha(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.premultipliedAlpha);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_pixelSize(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelSize);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_centerType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteAdvancedType(L, gen_to_be_invoked.centerType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_leftType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteAdvancedType(L, gen_to_be_invoked.leftType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_rightType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteAdvancedType(L, gen_to_be_invoked.rightType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_bottomType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteAdvancedType(L, gen_to_be_invoked.bottomType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_topType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
translator.PushUIBasicSpriteAdvancedType(L, gen_to_be_invoked.topType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_type(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.Type gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.Type)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.type = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_flip(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.Flip gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.Flip)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.flip = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_fillDirection(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.FillDirection gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.FillDirection)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.fillDirection = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_fillAmount(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.fillAmount = (float)LuaAPI.lua_tonumber(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_invert(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.invert = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_centerType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.AdvancedType gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.AdvancedType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.centerType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_leftType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.AdvancedType gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.AdvancedType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.leftType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_rightType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.AdvancedType gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.AdvancedType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.rightType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_bottomType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.AdvancedType gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.AdvancedType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.bottomType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_topType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
UIBasicSprite gen_to_be_invoked = (UIBasicSprite)translator.FastGetCSObj(L, 1);
|
|
UIBasicSprite.AdvancedType gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIBasicSprite.AdvancedType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
|
|
gen_to_be_invoked.topType = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|