Пример #1
0
 internal 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(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.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);
 }
Пример #2
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(SceneInfoKey[]))
     {
         SceneInfoKey[] array = obj as SceneInfoKey[];
         translator.PushSceneInfoKey(L, array[index]);
         return(true);
     }
     else if (type == typeof(UnityMMO.SceneObjectType[]))
     {
         UnityMMO.SceneObjectType[] array = obj as UnityMMO.SceneObjectType[];
         translator.PushUnityMMOSceneObjectType(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);
 }
Пример #3
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);
 }