984 lines
37 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
#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 UIRectWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UIRect);
Utils.BeginObjectRegister(type, L, translator, 0, 11, 22, 9);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateFinalAlpha", _m_CalculateFinalAlpha);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invalidate", _m_Invalidate);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSides", _m_GetSides);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SelfUpdate", _m_SelfUpdate);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAnchors", _m_UpdateAnchors);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchor", _m_SetAnchor);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAnchors", _m_ResetAnchors);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAndUpdateAnchors", _m_ResetAndUpdateAnchors);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRect", _m_SetRect);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParentHasChanged", _m_ParentHasChanged);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SelfCalculateFinalAlpha", _m_SelfCalculateFinalAlpha);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ID", _g_get_ID);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedGameObject", _g_get_cachedGameObject);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedTransform", _g_get_cachedTransform);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorCamera", _g_get_anchorCamera);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFullyAnchored", _g_get_isFullyAnchored);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAnchoredHorizontally", _g_get_isAnchoredHorizontally);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAnchoredVertically", _g_get_isAnchoredVertically);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "canBeAnchored", _g_get_canBeAnchored);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "parent", _g_get_parent);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "root", _g_get_root);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAnchored", _g_get_isAnchored);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "alpha", _g_get_alpha);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "localCorners", _g_get_localCorners);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCorners", _g_get_worldCorners);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnchorChanged", _g_get_AnchorChanged);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "leftAnchor", _g_get_leftAnchor);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rightAnchor", _g_get_rightAnchor);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bottomAnchor", _g_get_bottomAnchor);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "topAnchor", _g_get_topAnchor);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateAnchors", _g_get_updateAnchors);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "mStarted", _g_get_mStarted);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "finalAlpha", _g_get_finalAlpha);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "alpha", _s_set_alpha);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnchorChanged", _s_set_AnchorChanged);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "leftAnchor", _s_set_leftAnchor);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rightAnchor", _s_set_rightAnchor);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "bottomAnchor", _s_set_bottomAnchor);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "topAnchor", _s_set_topAnchor);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateAnchors", _s_set_updateAnchors);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "mStarted", _s_set_mStarted);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "finalAlpha", _s_set_finalAlpha);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 2);
Utils.RegisterFunc(L, Utils.CLS_IDX, "AllUpdate", _m_AllUpdate_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "CurFrameCount", _g_get_CurFrameCount);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "updateRate", _g_get_updateRate);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "CurFrameCount", _s_set_CurFrameCount);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "updateRate", _s_set_updateRate);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "UIRect does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CalculateFinalAlpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
int _frameID = LuaAPI.xlua_tointeger(L, 2);
float gen_ret = gen_to_be_invoked.CalculateFinalAlpha( _frameID );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Invalidate(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
{
bool _includeChildren = LuaAPI.lua_toboolean(L, 2);
bool _onlyAlphaChange = LuaAPI.lua_toboolean(L, 3);
gen_to_be_invoked.Invalidate( _includeChildren, _onlyAlphaChange );
return 0;
}
if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
{
bool _includeChildren = LuaAPI.lua_toboolean(L, 2);
gen_to_be_invoked.Invalidate( _includeChildren );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UIRect.Invalidate!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetSides(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
UnityEngine.Transform _relativeTo = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
UnityEngine.Vector3[] gen_ret = gen_to_be_invoked.GetSides( _relativeTo );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SelfUpdate(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
bool gen_ret = gen_to_be_invoked.SelfUpdate( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AllUpdate_xlua_st_(RealStatePtr L)
{
try {
{
UIRect.AllUpdate( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_UpdateAnchors(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.UpdateAnchors( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Transform>(L, 2))
{
UnityEngine.Transform _t = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
gen_to_be_invoked.SetAnchor( _t );
return 0;
}
if(gen_param_count == 2&& translator.Assignable<UnityEngine.GameObject>(L, 2))
{
UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
gen_to_be_invoked.SetAnchor( _go );
return 0;
}
if(gen_param_count == 6&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
{
UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
int _left = LuaAPI.xlua_tointeger(L, 3);
int _bottom = LuaAPI.xlua_tointeger(L, 4);
int _right = LuaAPI.xlua_tointeger(L, 5);
int _top = LuaAPI.xlua_tointeger(L, 6);
gen_to_be_invoked.SetAnchor( _go, _left, _bottom, _right, _top );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UIRect.SetAnchor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ResetAnchors(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.ResetAnchors( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ResetAndUpdateAnchors(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.ResetAndUpdateAnchors( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetRect(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
float _x = (float)LuaAPI.lua_tonumber(L, 2);
float _y = (float)LuaAPI.lua_tonumber(L, 3);
float _width = (float)LuaAPI.lua_tonumber(L, 4);
float _height = (float)LuaAPI.lua_tonumber(L, 5);
gen_to_be_invoked.SetRect( _x, _y, _width, _height );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ParentHasChanged(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.ParentHasChanged( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SelfCalculateFinalAlpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
{
float _parentAlpha = (float)LuaAPI.lua_tonumber(L, 2);
gen_to_be_invoked.SelfCalculateFinalAlpha( _parentAlpha );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_ID(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ID);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_cachedGameObject(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.cachedGameObject);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_cachedTransform(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.cachedTransform);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_anchorCamera(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.anchorCamera);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isFullyAnchored(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFullyAnchored);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isAnchoredHorizontally(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAnchoredHorizontally);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isAnchoredVertically(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAnchoredVertically);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_canBeAnchored(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canBeAnchored);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_parent(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.parent);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_root(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.root);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_isAnchored(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAnchored);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_alpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alpha);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_localCorners(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.localCorners);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_worldCorners(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.worldCorners);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_CurFrameCount(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, UIRect.CurFrameCount);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_AnchorChanged(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.AnchorChanged);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_leftAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.leftAnchor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_rightAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.rightAnchor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_bottomAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.bottomAnchor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_topAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.topAnchor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_updateAnchors(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
translator.PushUIRectAnchorUpdate(L, gen_to_be_invoked.updateAnchors);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_mStarted(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.mStarted);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_finalAlpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.finalAlpha);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_updateRate(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, UIRect.updateRate);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_alpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.alpha = (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_CurFrameCount(RealStatePtr L)
{
try {
UIRect.CurFrameCount = LuaAPI.xlua_tointeger(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_AnchorChanged(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.AnchorChanged = translator.GetDelegate<System.Action<UnityEngine.Transform>>(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_leftAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.leftAnchor = (UIRect.AnchorPoint)translator.GetObject(L, 2, typeof(UIRect.AnchorPoint));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_rightAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.rightAnchor = (UIRect.AnchorPoint)translator.GetObject(L, 2, typeof(UIRect.AnchorPoint));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_bottomAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.bottomAnchor = (UIRect.AnchorPoint)translator.GetObject(L, 2, typeof(UIRect.AnchorPoint));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_topAnchor(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.topAnchor = (UIRect.AnchorPoint)translator.GetObject(L, 2, typeof(UIRect.AnchorPoint));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_updateAnchors(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
UIRect.AnchorUpdate gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIRect.AnchorUpdate)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
gen_to_be_invoked.updateAnchors = 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_mStarted(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.mStarted = 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_finalAlpha(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UIRect gen_to_be_invoked = (UIRect)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.finalAlpha = (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_updateRate(RealStatePtr L)
{
try {
UIRect.updateRate = LuaAPI.xlua_tointeger(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}