504 lines
19 KiB
C#
504 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 FBWindowsTournamentsManagerWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(FBWindowsTournamentsManager);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 5, 9, 9);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_CreateTournament", _m_Button_CreateTournament);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_PostSessionScore", _m_Button_PostSessionScore);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_PostTournamentScore", _m_Button_PostTournamentScore);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_ShareTournament", _m_Button_ShareTournament);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_GetTournament", _m_Button_GetTournament);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Title", _g_get_Title);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Image", _g_get_Image);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "SortOrder", _g_get_SortOrder);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScoreFormat", _g_get_ScoreFormat);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitialScore", _g_get_InitialScore);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Score", _g_get_Score);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShareData", _g_get_ShareData);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Title", _s_set_Title);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Image", _s_set_Image);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "SortOrder", _s_set_SortOrder);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScoreFormat", _s_set_ScoreFormat);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Data", _s_set_Data);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "InitialScore", _s_set_InitialScore);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Score", _s_set_Score);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ShareData", _s_set_ShareData);
|
|
|
|
|
|
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)
|
|
{
|
|
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
if(LuaAPI.lua_gettop(L) == 1)
|
|
{
|
|
|
|
var gen_ret = new FBWindowsTournamentsManager();
|
|
translator.Push(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 FBWindowsTournamentsManager constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Button_CreateTournament(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Button_CreateTournament( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Button_PostSessionScore(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Button_PostSessionScore( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Button_PostTournamentScore(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Button_PostTournamentScore( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Button_ShareTournament(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Button_ShareTournament( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Button_GetTournament(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Button_GetTournament( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Logger(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Logger);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Title(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Title);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Image(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Image);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_SortOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.SortOrder);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ScoreFormat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.ScoreFormat);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Data(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Data);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_InitialScore(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.InitialScore);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Score(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.Score);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ShareData(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.ShareData);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Logger(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Title(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Title = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Image(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Image = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_SortOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.SortOrder = (UnityEngine.UI.Dropdown)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ScoreFormat(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.ScoreFormat = (UnityEngine.UI.Dropdown)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Data(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Data = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_InitialScore(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.InitialScore = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Score(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.Score = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ShareData(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.ShareData = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|