int UnityEngineSprite_g_get_bounds(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1);
            translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds);
            return(1);
        }
        int UnityEngineAnimationClip_g_get_localBounds(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1);
            translator.PushUnityEngineBounds(L, gen_to_be_invoked.localBounds);
            return(1);
        }
        int UnityEngineSkinnedMeshRenderer_g_get_localBounds(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
            translator.PushUnityEngineBounds(L, gen_to_be_invoked.localBounds);
            return(1);
        }
Пример #4
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(XLuaFramework.NetPackageType[]))
     {
         XLuaFramework.NetPackageType[] array = obj as XLuaFramework.NetPackageType[];
         translator.PushXLuaFrameworkNetPackageType(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #5
0
        int __CreateInstanceUnityEngineBounds(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Vector3>(L, 3))
            {
                UnityEngine.Vector3 _center; translator.Get(L, 2, out _center);
                UnityEngine.Vector3 _size; translator.Get(L, 3, out _size);

                UnityEngine.Bounds gen_ret = new UnityEngine.Bounds(_center, _size);
                translator.PushUnityEngineBounds(L, gen_ret);

                return(1);
            }

            if (gen_param_count == 1)
            {
                translator.PushUnityEngineBounds(L, default(UnityEngine.Bounds));
                return(1);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds constructor!"));
        }
 static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(XLuaTest.Pedding[]))
     {
         XLuaTest.Pedding[] array = obj as XLuaTest.Pedding[];
         translator.PushXLuaTestPedding(L, array[index]);
         return(true);
     }
     else if (type == typeof(XLuaTest.MyStruct[]))
     {
         XLuaTest.MyStruct[] array = obj as XLuaTest.MyStruct[];
         translator.PushXLuaTestMyStruct(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(XLuaTest.MyEnum[]))
     {
         XLuaTest.MyEnum[] array = obj as XLuaTest.MyEnum[];
         translator.PushXLuaTestMyEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.TestEnum[]))
     {
         Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[];
         translator.PushTutorialTestEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.DrivenClass.TestEnumInner[]))
     {
         Tutorial.DrivenClass.TestEnumInner[] array = obj as Tutorial.DrivenClass.TestEnumInner[];
         translator.PushTutorialDrivenClassTestEnumInner(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #7
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(DotEngine.Asset.AssetLoaderPriority[]))
     {
         DotEngine.Asset.AssetLoaderPriority[] array = obj as DotEngine.Asset.AssetLoaderPriority[];
         translator.PushDotEngineAssetAssetLoaderPriority(L, array[index]);
         return(true);
     }
     else if (type == typeof(DotEngine.UI.UILayerLevel[]))
     {
         DotEngine.UI.UILayerLevel[] array = obj as DotEngine.UI.UILayerLevel[];
         translator.PushDotEngineUIUILayerLevel(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.SystemLanguage[]))
     {
         UnityEngine.SystemLanguage[] array = obj as UnityEngine.SystemLanguage[];
         translator.PushUnityEngineSystemLanguage(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #8
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.PlayMode[]))
     {
         UnityEngine.PlayMode[] array = obj as UnityEngine.PlayMode[];
         translator.PushUnityEnginePlayMode(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.ScreenOrientation[]))
     {
         UnityEngine.ScreenOrientation[] array = obj as UnityEngine.ScreenOrientation[];
         translator.PushUnityEngineScreenOrientation(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.TouchPhase[]))
     {
         UnityEngine.TouchPhase[] array = obj as UnityEngine.TouchPhase[];
         translator.PushUnityEngineTouchPhase(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.EventType[]))
     {
         UnityEngine.EventType[] array = obj as UnityEngine.EventType[];
         translator.PushUnityEngineEventType(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #9
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(System.Net.Sockets.AddressFamily[]))
     {
         System.Net.Sockets.AddressFamily[] array = obj as System.Net.Sockets.AddressFamily[];
         translator.PushSystemNetSocketsAddressFamily(L, array[index]);
         return(true);
     }
     else if (type == typeof(System.Net.Sockets.SocketType[]))
     {
         System.Net.Sockets.SocketType[] array = obj as System.Net.Sockets.SocketType[];
         translator.PushSystemNetSocketsSocketType(L, array[index]);
         return(true);
     }
     else if (type == typeof(System.Net.Sockets.ProtocolType[]))
     {
         System.Net.Sockets.ProtocolType[] array = obj as System.Net.Sockets.ProtocolType[];
         translator.PushSystemNetSocketsProtocolType(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #10
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(System.Reflection.BindingFlags[]))
     {
         System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[];
         translator.PushSystemReflectionBindingFlags(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.TouchPhase[]))
     {
         UnityEngine.TouchPhase[] array = obj as UnityEngine.TouchPhase[];
         translator.PushUnityEngineTouchPhase(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.RenderMode[]))
     {
         UnityEngine.RenderMode[] array = obj as UnityEngine.RenderMode[];
         translator.PushUnityEngineRenderMode(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.UI.CanvasScaler.ScaleMode[]))
     {
         UnityEngine.UI.CanvasScaler.ScaleMode[] array = obj as UnityEngine.UI.CanvasScaler.ScaleMode[];
         translator.PushUnityEngineUICanvasScalerScaleMode(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode[]))
     {
         UnityEngine.UI.CanvasScaler.ScreenMatchMode[] array = obj as UnityEngine.UI.CanvasScaler.ScreenMatchMode[];
         translator.PushUnityEngineUICanvasScalerScreenMatchMode(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #11
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(Minecraft.ItemsData.ItemType[]))
     {
         Minecraft.ItemsData.ItemType[] array = obj as Minecraft.ItemsData.ItemType[];
         translator.PushMinecraftItemsDataItemType(L, array[index]);
         return(true);
     }
     else if (type == typeof(Minecraft.BlocksData.BlockFlags[]))
     {
         Minecraft.BlocksData.BlockFlags[] array = obj as Minecraft.BlocksData.BlockFlags[];
         translator.PushMinecraftBlocksDataBlockFlags(L, array[index]);
         return(true);
     }
     else if (type == typeof(Minecraft.BlocksData.BlockType[]))
     {
         Minecraft.BlocksData.BlockType[] array = obj as Minecraft.BlocksData.BlockType[];
         translator.PushMinecraftBlocksDataBlockType(L, array[index]);
         return(true);
     }
     else if (type == typeof(Minecraft.BlocksData.BlockVertexType[]))
     {
         Minecraft.BlocksData.BlockVertexType[] array = obj as Minecraft.BlocksData.BlockVertexType[];
         translator.PushMinecraftBlocksDataBlockVertexType(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #12
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.TestEnum[]))
     {
         Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[];
         translator.PushTutorialTestEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(Utopia.LogLevel[]))
     {
         Utopia.LogLevel[] array = obj as Utopia.LogLevel[];
         translator.PushUtopiaLogLevel(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.DerivedClass.TestEnumInner[]))
     {
         Tutorial.DerivedClass.TestEnumInner[] array = obj as Tutorial.DerivedClass.TestEnumInner[];
         translator.PushTutorialDerivedClassTestEnumInner(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #13
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(System.Reflection.BindingFlags[]))
     {
         System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[];
         translator.PushSystemReflectionBindingFlags(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.TestEnum[]))
     {
         Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[];
         translator.PushTutorialTestEnum(L, array[index]);
         return(true);
     }
     else if (type == typeof(Tutorial.DrivenClass.TestEnumInner[]))
     {
         Tutorial.DrivenClass.TestEnumInner[] array = obj as Tutorial.DrivenClass.TestEnumInner[];
         translator.PushTutorialDrivenClassTestEnumInner(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #14
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(PushAsTableStruct[]))
     {
         PushAsTableStruct[] array = obj as PushAsTableStruct[];
         translator.PushPushAsTableStruct(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(XLuaTest.Pedding[]))
     {
         XLuaTest.Pedding[] array = obj as XLuaTest.Pedding[];
         translator.PushXLuaTestPedding(L, array[index]);
         return(true);
     }
     else if (type == typeof(XLuaTest.MyStruct[]))
     {
         XLuaTest.MyStruct[] array = obj as XLuaTest.MyStruct[];
         translator.PushXLuaTestMyStruct(L, array[index]);
         return(true);
     }
     return(false);
 }
Пример #15
0
 internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index)
 {
     if (type == typeof(UnityEngine.Vector2[]))
     {
         UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[];
         translator.PushUnityEngineVector2(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector3[]))
     {
         UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[];
         translator.PushUnityEngineVector3(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Vector4[]))
     {
         UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[];
         translator.PushUnityEngineVector4(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Color[]))
     {
         UnityEngine.Color[] array = obj as UnityEngine.Color[];
         translator.PushUnityEngineColor(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Quaternion[]))
     {
         UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[];
         translator.PushUnityEngineQuaternion(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray[]))
     {
         UnityEngine.Ray[] array = obj as UnityEngine.Ray[];
         translator.PushUnityEngineRay(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Bounds[]))
     {
         UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[];
         translator.PushUnityEngineBounds(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.Ray2D[]))
     {
         UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[];
         translator.PushUnityEngineRay2D(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityEngine.TextAnchor[]))
     {
         UnityEngine.TextAnchor[] array = obj as UnityEngine.TextAnchor[];
         translator.PushUnityEngineTextAnchor(L, array[index]);
         return(true);
     }
     else if (type == typeof(VVMUI.Script.XLua.XLuaDataType[]))
     {
         VVMUI.Script.XLua.XLuaDataType[] array = obj as VVMUI.Script.XLua.XLuaDataType[];
         translator.PushVVMUIScriptXLuaXLuaDataType(L, array[index]);
         return(true);
     }
     else if (type == typeof(VVMUI.Script.XLua.XLuaCommandType[]))
     {
         VVMUI.Script.XLua.XLuaCommandType[] array = obj as VVMUI.Script.XLua.XLuaCommandType[];
         translator.PushVVMUIScriptXLuaXLuaCommandType(L, array[index]);
         return(true);
     }
     return(false);
 }