616 lines
25 KiB
C#
616 lines
25 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 BFBFGestureWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BFGesture);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 12, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenCenter", _m_GetScreenCenter_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastScreenCenter", _m_GetLastScreenCenter_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStartScreenCenter", _m_GetStartScreenCenter_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenDelta", _m_GetScreenDelta_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetWorldDelta", _m_GetWorldDelta_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenDistance", _m_GetScreenDistance_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastScreenDistance", _m_GetLastScreenDistance_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStartScreenDistance", _m_GetStartScreenDistance_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPinchScale", _m_GetPinchScale_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTwistDegrees", _m_GetTwistDegrees_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTwistRadians", _m_GetTwistRadians_xlua_st_);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "BF.BFGesture does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetScreenCenter_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenCenter( );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenCenter( _fingers );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenCenter!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetLastScreenCenter_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetLastScreenCenter( );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetLastScreenCenter( _fingers );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetLastScreenCenter!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetStartScreenCenter_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetStartScreenCenter( );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetStartScreenCenter( _fingers );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetStartScreenCenter!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetScreenDelta_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenDelta( );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenDelta( _fingers );
|
|
translator.PushUnityEngineVector2(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenDelta!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetWorldDelta_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<UnityEngine.Camera>(L, 2))
|
|
{
|
|
float _distance = (float)LuaAPI.lua_tonumber(L, 1);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera));
|
|
|
|
var gen_ret = BF.BFGesture.GetWorldDelta( _distance, _camera );
|
|
translator.PushUnityEngineVector3(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))
|
|
{
|
|
float _distance = (float)LuaAPI.lua_tonumber(L, 1);
|
|
|
|
var gen_ret = BF.BFGesture.GetWorldDelta( _distance );
|
|
translator.PushUnityEngineVector3(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
float _distance = (float)LuaAPI.lua_tonumber(L, 2);
|
|
UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
|
|
|
|
var gen_ret = BF.BFGesture.GetWorldDelta( _fingers, _distance, _camera );
|
|
translator.PushUnityEngineVector3(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
float _distance = (float)LuaAPI.lua_tonumber(L, 2);
|
|
|
|
var gen_ret = BF.BFGesture.GetWorldDelta( _fingers, _distance );
|
|
translator.PushUnityEngineVector3(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetWorldDelta!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetScreenDistance_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenDistance( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenDistance( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& translator.Assignable<UnityEngine.Vector2>(L, 2))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
UnityEngine.Vector2 _center;translator.Get(L, 2, out _center);
|
|
|
|
var gen_ret = BF.BFGesture.GetScreenDistance( _fingers, _center );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenDistance!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetLastScreenDistance_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetLastScreenDistance( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetLastScreenDistance( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& translator.Assignable<UnityEngine.Vector2>(L, 2))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
UnityEngine.Vector2 _center;translator.Get(L, 2, out _center);
|
|
|
|
var gen_ret = BF.BFGesture.GetLastScreenDistance( _fingers, _center );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetLastScreenDistance!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetStartScreenDistance_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetStartScreenDistance( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetStartScreenDistance( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& translator.Assignable<UnityEngine.Vector2>(L, 2))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
UnityEngine.Vector2 _center;translator.Get(L, 2, out _center);
|
|
|
|
var gen_ret = BF.BFGesture.GetStartScreenDistance( _fingers, _center );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetStartScreenDistance!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetPinchScale_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1))
|
|
{
|
|
bool _useWheel = LuaAPI.lua_toboolean(L, 1);
|
|
|
|
var gen_ret = BF.BFGesture.GetPinchScale( _useWheel );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetPinchScale( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
bool _useWheel = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
var gen_ret = BF.BFGesture.GetPinchScale( _fingers, _useWheel );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetPinchScale( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetPinchScale!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetTwistDegrees_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetTwistDegrees( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetTwistDegrees( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetTwistDegrees!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetTwistRadians_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 0)
|
|
{
|
|
|
|
var gen_ret = BF.BFGesture.GetTwistRadians( );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.List<BF.BFFinger>>(L, 1))
|
|
{
|
|
System.Collections.Generic.List<BF.BFFinger> _fingers = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
|
|
|
var gen_ret = BF.BFGesture.GetTwistRadians( _fingers );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetTwistRadians!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|