c1_unity/Assets/XLua/Gen/UnityEngine_RemoteSettingsWrap.cs
2023-04-03 11:04:31 +08:00

593 lines
21 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 UnityEngineRemoteSettingsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.RemoteSettings);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 16, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "ForceUpdate", _m_ForceUpdate_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "WasLastUpdatedFromServer", _m_WasLastUpdatedFromServer_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInt", _m_GetInt_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLong", _m_GetLong_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFloat", _m_GetFloat_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetString", _m_GetString_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBool", _m_GetBool_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "HasKey", _m_HasKey_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCount", _m_GetCount_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetObject", _m_GetObject_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDictionary", _m_GetDictionary_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Updated", _e_Updated);
Utils.RegisterFunc(L, Utils.CLS_IDX, "BeforeFetchFromServer", _e_BeforeFetchFromServer);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Completed", _e_Completed);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "UnityEngine.RemoteSettings does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ForceUpdate_xlua_st_(RealStatePtr L)
{
try {
{
UnityEngine.RemoteSettings.ForceUpdate( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_WasLastUpdatedFromServer_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.RemoteSettings.WasLastUpdatedFromServer( );
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_GetInt_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetInt( _key );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
{
string _key = LuaAPI.lua_tostring(L, 1);
int _defaultValue = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetInt( _key, _defaultValue );
LuaAPI.xlua_pushinteger(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 UnityEngine.RemoteSettings.GetInt!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetLong_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetLong( _key );
LuaAPI.lua_pushint64(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)))
{
string _key = LuaAPI.lua_tostring(L, 1);
long _defaultValue = LuaAPI.lua_toint64(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetLong( _key, _defaultValue );
LuaAPI.lua_pushint64(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 UnityEngine.RemoteSettings.GetLong!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetFloat_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetFloat( _key );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
{
string _key = LuaAPI.lua_tostring(L, 1);
float _defaultValue = (float)LuaAPI.lua_tonumber(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetFloat( _key, _defaultValue );
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 UnityEngine.RemoteSettings.GetFloat!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetString_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetString( _key );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
string _defaultValue = LuaAPI.lua_tostring(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetString( _key, _defaultValue );
LuaAPI.lua_pushstring(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 UnityEngine.RemoteSettings.GetString!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetBool_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetBool( _key );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
{
string _key = LuaAPI.lua_tostring(L, 1);
bool _defaultValue = LuaAPI.lua_toboolean(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetBool( _key, _defaultValue );
LuaAPI.lua_pushboolean(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 UnityEngine.RemoteSettings.GetBool!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_HasKey_xlua_st_(RealStatePtr L)
{
try {
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.HasKey( _key );
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_GetCount_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = UnityEngine.RemoteSettings.GetCount( );
LuaAPI.xlua_pushinteger(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_GetKeys_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = UnityEngine.RemoteSettings.GetKeys( );
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_GetObject_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& translator.Assignable<System.Type>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
{
System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
string _key = LuaAPI.lua_tostring(L, 2);
var gen_ret = UnityEngine.RemoteSettings.GetObject( _type, _key );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 1&& translator.Assignable<System.Type>(L, 1))
{
System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
var gen_ret = UnityEngine.RemoteSettings.GetObject( _type );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<object>(L, 2))
{
string _key = LuaAPI.lua_tostring(L, 1);
object _defaultValue = translator.GetObject(L, 2, typeof(object));
var gen_ret = UnityEngine.RemoteSettings.GetObject( _key, _defaultValue );
translator.PushAny(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 UnityEngine.RemoteSettings.GetObject!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetDictionary_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _key = LuaAPI.lua_tostring(L, 1);
var gen_ret = UnityEngine.RemoteSettings.GetDictionary( _key );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 0)
{
var gen_ret = UnityEngine.RemoteSettings.GetDictionary( );
translator.PushAny(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 UnityEngine.RemoteSettings.GetDictionary!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_Updated(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
UnityEngine.RemoteSettings.UpdatedEventHandler gen_delegate = translator.GetDelegate<UnityEngine.RemoteSettings.UpdatedEventHandler>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need UnityEngine.RemoteSettings.UpdatedEventHandler!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.RemoteSettings.Updated += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.RemoteSettings.Updated -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.Updated!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_BeforeFetchFromServer(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.RemoteSettings.BeforeFetchFromServer += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.RemoteSettings.BeforeFetchFromServer -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.BeforeFetchFromServer!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_Completed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<bool, bool, int> gen_delegate = translator.GetDelegate<System.Action<bool, bool, int>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<bool, bool, int>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.RemoteSettings.Completed += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.RemoteSettings.Completed -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RemoteSettings.Completed!");
}
}
}