Initial commit: Client Doc docs Server Tools
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,266 @@
|
||||
#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 = XLuaBase.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class UnityEngineAnimatorStateInfoWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(UnityEngine.AnimatorStateInfo);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 0);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsName", _m_IsName);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTag", _m_IsTag);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fullPathHash", _g_get_fullPathHash);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "shortNameHash", _g_get_shortNameHash);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedTime", _g_get_normalizedTime);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedMultiplier", _g_get_speedMultiplier);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagHash", _g_get_tagHash);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop);
|
||||
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
translator.Push(L, default(UnityEngine.AnimatorStateInfo));
|
||||
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.AnimatorStateInfo constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsName(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.IsName( _name );
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsTag(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tag = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.IsTag( _tag );
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_fullPathHash(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fullPathHash);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_shortNameHash(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shortNameHash);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_normalizedTime(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedTime);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_length(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_speed(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_speedMultiplier(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speedMultiplier);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_tagHash(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tagHash);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_loop(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user