966 lines
37 KiB
C#
966 lines
37 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 UnityEngineRectWrap
|
|||
|
{
|
|||
|
public static void __Register(RealStatePtr L)
|
|||
|
{
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
System.Type type = typeof(UnityEngine.Rect);
|
|||
|
Utils.BeginObjectRegister(type, L, translator, 1, 6, 13, 13);
|
|||
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
|||
|
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Overlaps", _m_Overlaps);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
|||
|
|
|||
|
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMin", _g_get_xMin);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMin", _g_get_yMin);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMax", _g_get_xMax);
|
|||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMax", _g_get_yMax);
|
|||
|
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMin", _s_set_xMin);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMin", _s_set_yMin);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMax", _s_set_xMax);
|
|||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMax", _s_set_yMax);
|
|||
|
|
|||
|
|
|||
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|||
|
null, null, null);
|
|||
|
|
|||
|
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 0);
|
|||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "MinMaxRect", _m_MinMaxRect_xlua_st_);
|
|||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "NormalizedToPoint", _m_NormalizedToPoint_xlua_st_);
|
|||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "PointToNormalized", _m_PointToNormalized_xlua_st_);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Utils.EndClassRegister(type, L, translator);
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int __CreateInstance(RealStatePtr L)
|
|||
|
{
|
|||
|
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(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))
|
|||
|
{
|
|||
|
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);
|
|||
|
|
|||
|
UnityEngine.Rect gen_ret = new UnityEngine.Rect(_x, _y, _width, _height);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<UnityEngine.Vector2>(L, 2) && translator.Assignable<UnityEngine.Vector2>(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Vector2 _position;translator.Get(L, 2, out _position);
|
|||
|
UnityEngine.Vector2 _size;translator.Get(L, 3, out _size);
|
|||
|
|
|||
|
UnityEngine.Rect gen_ret = new UnityEngine.Rect(_position, _size);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Rect>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rect _source;translator.Get(L, 2, out _source);
|
|||
|
|
|||
|
UnityEngine.Rect gen_ret = new UnityEngine.Rect(_source);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
if (LuaAPI.lua_gettop(L) == 1)
|
|||
|
{
|
|||
|
translator.Push(L, default(UnityEngine.Rect));
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect constructor!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int __EqMeta(RealStatePtr L)
|
|||
|
{
|
|||
|
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
if (translator.Assignable<UnityEngine.Rect>(L, 1) && translator.Assignable<UnityEngine.Rect>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rect leftside;translator.Get(L, 1, out leftside);
|
|||
|
UnityEngine.Rect rightside;translator.Get(L, 2, out rightside);
|
|||
|
|
|||
|
LuaAPI.lua_pushboolean(L, leftside == rightside);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Rect!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_MinMaxRect_xlua_st_(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
float _xmin = (float)LuaAPI.lua_tonumber(L, 1);
|
|||
|
float _ymin = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
float _xmax = (float)LuaAPI.lua_tonumber(L, 3);
|
|||
|
float _ymax = (float)LuaAPI.lua_tonumber(L, 4);
|
|||
|
|
|||
|
UnityEngine.Rect gen_ret = UnityEngine.Rect.MinMaxRect( _xmin, _ymin, _xmax, _ymax );
|
|||
|
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_Set(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
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.Set( _x, _y, _width, _height );
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_Contains(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|||
|
|
|||
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector2>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Vector2 _point;translator.Get(L, 2, out _point);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Contains( _point );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Contains( _point );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
|||
|
bool _allowInverse = LuaAPI.lua_toboolean(L, 3);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Contains( _point, _allowInverse );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Contains!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_Overlaps(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|||
|
|
|||
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Rect>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rect _other;translator.Get(L, 2, out _other);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Overlaps( _other );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Rect>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Rect _other;translator.Get(L, 2, out _other);
|
|||
|
bool _allowInverse = LuaAPI.lua_toboolean(L, 3);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Overlaps( _other, _allowInverse );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Overlaps!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_NormalizedToPoint_xlua_st_(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
UnityEngine.Rect _rectangle;translator.Get(L, 1, out _rectangle);
|
|||
|
UnityEngine.Vector2 _normalizedRectCoordinates;translator.Get(L, 2, out _normalizedRectCoordinates);
|
|||
|
|
|||
|
UnityEngine.Vector2 gen_ret = UnityEngine.Rect.NormalizedToPoint( _rectangle, _normalizedRectCoordinates );
|
|||
|
translator.PushUnityEngineVector2(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_PointToNormalized_xlua_st_(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
UnityEngine.Rect _rectangle;translator.Get(L, 1, out _rectangle);
|
|||
|
UnityEngine.Vector2 _point;translator.Get(L, 2, out _point);
|
|||
|
|
|||
|
UnityEngine.Vector2 gen_ret = UnityEngine.Rect.PointToNormalized( _rectangle, _point );
|
|||
|
translator.PushUnityEngineVector2(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_GetHashCode(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
|
|||
|
int gen_ret = gen_to_be_invoked.GetHashCode( );
|
|||
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_Equals(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|||
|
|
|||
|
if(gen_param_count == 2&& translator.Assignable<object>(L, 2))
|
|||
|
{
|
|||
|
object _other = translator.GetObject(L, 2, typeof(object));
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Equals( _other );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Rect>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rect _other;translator.Get(L, 2, out _other);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Equals( _other );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Equals!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_ToString(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|||
|
|
|||
|
if(gen_param_count == 1)
|
|||
|
{
|
|||
|
|
|||
|
string gen_ret = gen_to_be_invoked.ToString( );
|
|||
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|||
|
{
|
|||
|
string _format = LuaAPI.lua_tostring(L, 2);
|
|||
|
|
|||
|
string gen_ret = gen_to_be_invoked.ToString( _format );
|
|||
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.IFormatProvider>(L, 3))
|
|||
|
{
|
|||
|
string _format = LuaAPI.lua_tostring(L, 2);
|
|||
|
System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider));
|
|||
|
|
|||
|
string gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider );
|
|||
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.ToString!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_zero(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
translator.Push(L, UnityEngine.Rect.zero);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_x(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_y(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_position(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.position);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_center(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.center);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_min(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.min);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_max(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.max);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_width(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_height(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_size(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.size);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_xMin(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMin);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_yMin(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMin);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_xMax(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMax);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _g_get_yMax(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMax);
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_x(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_y(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_position(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
|||
|
gen_to_be_invoked.position = gen_value;
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_center(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
|||
|
gen_to_be_invoked.center = gen_value;
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_min(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
|||
|
gen_to_be_invoked.min = gen_value;
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_max(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
|||
|
gen_to_be_invoked.max = gen_value;
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_width(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_height(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_size(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
|||
|
gen_to_be_invoked.size = gen_value;
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_xMin(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.xMin = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_yMin(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.yMin = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_xMax(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.xMax = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _s_set_yMax(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
gen_to_be_invoked.yMax = (float)LuaAPI.lua_tonumber(L, 2);
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|