internal static bool __tryArraySet(Type type, RealStatePtr L, XLua.ObjectTranslator translator, object obj, int array_idx, int obj_idx) { if (type == typeof(Core.Math.Vec2[])) { Core.Math.Vec2[] array = obj as Core.Math.Vec2[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Core.Math.Vec3[])) { Core.Math.Vec3[] array = obj as Core.Math.Vec3[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Core.Math.Vec4[])) { Core.Math.Vec4[] array = obj as Core.Math.Vec4[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Core.Math.Color4[])) { Core.Math.Color4[] array = obj as Core.Math.Color4[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Core.Math.Bounds[])) { Core.Math.Bounds[] array = obj as Core.Math.Bounds[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Core.Math.Rect[])) { Core.Math.Rect[] array = obj as Core.Math.Rect[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } else if (type == typeof(Logic.Model.EntityFlag[])) { Logic.Model.EntityFlag[] array = obj as Logic.Model.EntityFlag[]; translator.Get(L, obj_idx, out array[array_idx]); return(true); } return(false); }
internal static bool __tryArrayGet(Type type, RealStatePtr L, XLua.ObjectTranslator translator, object obj, int index) { if (type == typeof(Core.Math.Vec2[])) { Core.Math.Vec2[] array = obj as Core.Math.Vec2[]; translator.PushCoreMathVec2(L, array[index]); return(true); } else if (type == typeof(Core.Math.Vec3[])) { Core.Math.Vec3[] array = obj as Core.Math.Vec3[]; translator.PushCoreMathVec3(L, array[index]); return(true); } else if (type == typeof(Core.Math.Vec4[])) { Core.Math.Vec4[] array = obj as Core.Math.Vec4[]; translator.PushCoreMathVec4(L, array[index]); return(true); } else if (type == typeof(Core.Math.Color4[])) { Core.Math.Color4[] array = obj as Core.Math.Color4[]; translator.PushCoreMathColor4(L, array[index]); return(true); } else if (type == typeof(Core.Math.Bounds[])) { Core.Math.Bounds[] array = obj as Core.Math.Bounds[]; translator.PushCoreMathBounds(L, array[index]); return(true); } else if (type == typeof(Core.Math.Rect[])) { Core.Math.Rect[] array = obj as Core.Math.Rect[]; translator.PushCoreMathRect(L, array[index]); return(true); } else if (type == typeof(Logic.Model.EntityFlag[])) { Logic.Model.EntityFlag[] array = obj as Logic.Model.EntityFlag[]; translator.PushLogicModelEntityFlag(L, array[index]); return(true); } return(false); }
public void __Gen_Delegate_Imp12(XLua.LuaEnv p0, XLua.ObjectTranslator p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.Push(L, p0); translator.Push(L, p1); PCall(L, 2, 0, errFunc); LuaAPI.lua_settop(L, errFunc - 1); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
internal static bool __tryArraySet(Type type, RealStatePtr L, XLua.ObjectTranslator translator, object obj, int array_idx, int obj_idx) { return(false); }
internal static bool __tryArrayGet(Type type, RealStatePtr L, XLua.ObjectTranslator translator, object obj, int index) { return(false); }