Пример #1
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            t_result &= Simple.Check_Dictionary("list_type", a_from.list_type, a_to.list_type, (string a_a_label, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, a_a_to);
                return(t_t_result);
            });

            t_result &= Simple.Check_Dictionary("list_int", a_from.list_int, a_to.list_int, (string a_a_label, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, a_a_to);
                return(t_t_result);
            });

            t_result &= Simple.Check_Dictionary("list_class", a_from.list_class, a_to.list_class, (string a_a_label, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, a_a_to);
                return(t_t_result);
            });

            return(t_result);
        }
Пример #2
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            //sorted_dictionary
            t_result &= Simple.Check_Dictionary("sorted_dictionary", a_from.sorted_dictionary, a_to.sorted_dictionary, (string a_a_llabel, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_llabel, a_a_from, a_a_to);
                return(t_t_result);
            });

            //sorted_list
            t_result &= Simple.Check_Dictionary("sorted_list", a_from.sorted_list, a_to.sorted_list, (string a_a_llabel, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_llabel, a_a_from, a_a_to);
                return(t_t_result);
            });

            return(t_result);
        }
Пример #3
0
        /** Check_Member
         */
        public static bool Check_Member(Item a_from, Item a_to)
        {
            if ((a_from == null) && (a_to == null))
            {
                return(true);
            }

            if (a_from == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : from == null");
                return(false);
            }
            else if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : to == null");
                return(false);
            }

            bool t_result = true;

            //value
            t_result &= Simple.Check_Int("value", a_from.value, a_to.value);

            //item
            t_result &= Check_Member(a_from.item, a_to.item);

            return(t_result);
        }
Пример #4
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            t_result &= Simple.Check_Bool("value_bool", a_from.value_bool, a_to.value_bool);
            t_result &= Simple.Check_Sbyte("value_sbyte", a_from.value_sbyte, a_to.value_sbyte);
            t_result &= Simple.Check_Byte("value_byte", a_from.value_byte, a_to.value_byte);
            t_result &= Simple.Check_Short("value_short", a_from.value_short, a_to.value_short);
            t_result &= Simple.Check_Ushort("value_ushort", a_from.value_ushort, a_to.value_ushort);
            t_result &= Simple.Check_Int("value_int", a_from.value_int, a_to.value_int);
            t_result &= Simple.Check_Uint("value_uint", a_from.value_uint, a_to.value_uint);
            t_result &= Simple.Check_Long("value_long", a_from.value_long, a_to.value_long);
            t_result &= Simple.Check_Ulong("value_ulong", a_from.value_ulong, a_to.value_ulong);
            t_result &= Simple.Check_Char("value_char", a_from.value_char, a_to.value_char);
            t_result &= Simple.Check_Float("value_float", a_from.value_float, a_to.value_float);
            t_result &= Simple.Check_Double("value_double", a_from.value_double, a_to.value_double);
            t_result &= Simple.Check_Decimal("value_decimal", a_from.value_decimal, a_to.value_decimal);
            t_result &= Simple.Check_Decimal("value_decimal_min", a_from.value_decimal_min, a_to.value_decimal_min);

            return(t_result);
        }
Пример #5
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            t_result &= Simple.Check_Bool("value_bool", (bool)a_from.value_bool, (bool)a_to.value_bool);
            t_result &= Simple.Check_Ulong("value_sbyte", (ulong)(sbyte)a_from.value_sbyte, (ulong)a_to.value_sbyte);
            t_result &= Simple.Check_Ulong("value_byte", (ulong)(byte)a_from.value_byte, (ulong)a_to.value_byte);
            t_result &= Simple.Check_Ulong("value_short", (ulong)(short)a_from.value_short, (ulong)a_to.value_short);
            t_result &= Simple.Check_Ulong("value_ushort", (ulong)(ushort)a_from.value_ushort, (ulong)a_to.value_ushort);
            t_result &= Simple.Check_Ulong("value_int", (ulong)(int)a_from.value_int, (ulong)a_to.value_int);
            t_result &= Simple.Check_Ulong("value_uint", (ulong)(uint)a_from.value_uint, (ulong)a_to.value_uint);
            t_result &= Simple.Check_Ulong("value_long", (ulong)(long)a_from.value_long, (ulong)a_to.value_long);
            t_result &= Simple.Check_Ulong("value_ulong", (ulong)a_from.value_ulong, (ulong)a_to.value_ulong);
            t_result &= Simple.Check_Ulong("value_char", (ulong)(char)a_from.value_char, (ulong)a_to.value_char);
            t_result &= Simple.Check_Double("value_float", (double)(float)a_from.value_float, (double)a_to.value_float);
            t_result &= Simple.Check_Double("value_double", (double)a_from.value_double, (double)a_to.value_double);
            t_result &= Simple.Check_Decimal("value_decimal", (decimal)a_from.value_decimal, (decimal)a_to.value_decimal);

            //value_list
            t_result &= Simple.Check_Enumerator("value_list", (System.Collections.Generic.List <int>)a_from.value_list, (System.Collections.Generic.List <System.Object>)a_to.value_list, (string a_a_label, int a_a_index, in int a_a_from, in System.Object a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, (int)(ulong)a_a_to);
                return(t_t_result);
            });
Пример #6
0
            /** Check
             */
            public static bool Check(Item_Base_Base a_from, Item_Base_Base a_to)
            {
                bool t_result = true;

                t_result &= Simple.Check_Int("pub_3", a_from.pub_3, a_to.pub_3);
                t_result &= Simple.Check_Int("pro_3", a_from.pub_3, a_to.pub_3);
                t_result &= Simple.Check_Int("pri_3", a_from.pub_3, a_to.pub_3);
                return(t_result & Item_Base_Base_Base.Check(a_from, a_to));
            }
Пример #7
0
            /** Check
             */
            public static bool Check(Item_Base_Base_Base a_from, Item_Base_Base_Base a_to)
            {
                bool t_result = true;

                t_result &= Simple.Check_Int("pub_4", a_from.pub_4, a_to.pub_4);
                t_result &= Simple.Check_Int("pro_4", a_from.pub_4, a_to.pub_4);
                t_result &= Simple.Check_Int("pri_4", a_from.pub_4, a_to.pub_4);
                return(t_result);
            }
Пример #8
0
        public static bool Check(int[][][][][] a_from, int[][][][][] a_to)
                #endif
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

                        #if (NEST_12)
            t_result &= Simple.Check_Int("0.length", a_from.Length, a_to.Length);
            t_result &= Simple.Check_Int("1.length", a_from[0].Length, a_to[0].Length);
            t_result &= Simple.Check_Int("2.length", a_from[0][0].Length, a_to[0][0].Length);
            t_result &= Simple.Check_Int("3.length", a_from[0][0][0].Length, a_to[0][0][0].Length);
            t_result &= Simple.Check_Int("4.length", a_from[0][0][0][0].Length, a_to[0][0][0][0].Length);
            t_result &= Simple.Check_Int("5.length", a_from[0][0][0][0][0].Length, a_to[0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("6.length", a_from[0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("7.length", a_from[0][0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("8.length", a_from[0][0][0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("9.length", a_from[0][0][0][0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("10.length", a_from[0][0][0][0][0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("11.length", a_from[0][0][0][0][0][0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("11.value", a_from[0][0][0][0][0][0][0][0][0][0][0][0], a_to[0][0][0][0][0][0][0][0][0][0][0][0]);
                        #elif (NEST_7)
            t_result &= Simple.Check_Int("0.length", a_from.Length, a_to.Length);
            t_result &= Simple.Check_Int("1.length", a_from[0].Length, a_to[0].Length);
            t_result &= Simple.Check_Int("2.length", a_from[0][0].Length, a_to[0][0].Length);
            t_result &= Simple.Check_Int("3.length", a_from[0][0][0].Length, a_to[0][0][0].Length);
            t_result &= Simple.Check_Int("4.length", a_from[0][0][0][0].Length, a_to[0][0][0][0].Length);
            t_result &= Simple.Check_Int("5.length", a_from[0][0][0][0][0].Length, a_to[0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("6.length", a_from[0][0][0][0][0][0].Length, a_to[0][0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("6.value", a_from[0][0][0][0][0][0][0], a_to[0][0][0][0][0][0][0]);
                        #elif (NEST_6)
            t_result &= Simple.Check_Int("0.length", a_from.Length, a_to.Length);
            t_result &= Simple.Check_Int("1.length", a_from[0].Length, a_to[0].Length);
            t_result &= Simple.Check_Int("2.length", a_from[0][0].Length, a_to[0][0].Length);
            t_result &= Simple.Check_Int("3.length", a_from[0][0][0].Length, a_to[0][0][0].Length);
            t_result &= Simple.Check_Int("4.length", a_from[0][0][0][0].Length, a_to[0][0][0][0].Length);
            t_result &= Simple.Check_Int("5.length", a_from[0][0][0][0][0].Length, a_to[0][0][0][0][0].Length);
            t_result &= Simple.Check_Int("5.value", a_from[0][0][0][0][0][0], a_to[0][0][0][0][0][0]);
                        #elif (NEST_5)
            t_result &= Simple.Check_Int("0.length", a_from.Length, a_to.Length);
            t_result &= Simple.Check_Int("1.length", a_from[0].Length, a_to[0].Length);
            t_result &= Simple.Check_Int("2.length", a_from[0][0].Length, a_to[0][0].Length);
            t_result &= Simple.Check_Int("3.length", a_from[0][0][0].Length, a_to[0][0][0].Length);
            t_result &= Simple.Check_Int("4.length", a_from[0][0][0][0].Length, a_to[0][0][0][0].Length);
            t_result &= Simple.Check_Int("4.value", a_from[0][0][0][0][0], a_to[0][0][0][0][0]);
                        #endif

            return(t_result);
        }
Пример #9
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            //Item.ignore
            t_result &= Simple.Check_Int("ignore", 0, a_to.ignore);

            return(t_result);
        }
Пример #10
0
        /** チェック。
         */
        public static bool Check(System.Collections.Generic.Dictionary <string, int> a_from, System.Collections.Generic.Dictionary <string, int> a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            t_result &= Simple.Check_Dictionary("", a_from, a_to, (string a_a_label, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, a_a_to);
                return(t_t_result);
            });

            return(t_result);
        }
Пример #11
0
        /** チェック。
         */
        public static bool Check(int[] a_from, int[] a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            t_result &= Simple.Check_Enumerator("", a_from, a_to, (string a_a_label, int a_a_index, in int a_a_from, in int a_a_to) => {
                bool t_t_result = true;
                t_t_result     &= Simple.Check_Int(a_a_label, a_a_from, a_a_to);
                return(t_t_result);
            });

            return(t_result);
        }
Пример #12
0
        /** チェック。
         */
        public static bool Check(Item a_from, Item a_to)
        {
            if (a_to == null)
            {
                UnityEngine.Debug.LogWarning("mismatch : null");
                return(false);
            }

            bool t_result = true;

            Simple.Check_Enumerator("arraylist", a_from.arraylist, a_to.arraylist, (string a_a_label, int a_a_index, in System.Object a_a_from, in System.Object a_a_to) => {
                bool t_t_result = true;

                switch (a_a_index)
                {
                case 0:
                    {
                        t_t_result &= Simple.Check_String("0:value_string", ((Item_Value)a_a_from).value_string, (string)(((System.Collections.Generic.Dictionary <string, System.Object>)a_a_to)["value_string"]));
                        t_t_result &= Simple.Check_Bool("1:value_bool", ((Item_Value)a_a_from).value_bool, (bool)(((System.Collections.Generic.Dictionary <string, System.Object>)a_a_to)["value_bool"]));
                    } break;

                case 1:
                    {
                        t_t_result &= Simple.Check_Int("1", (int)a_a_from, (int)(ulong)a_a_to);
                    } break;

                case 2:
                    {
                        t_t_result &= Simple.Check_String("2", (string)a_a_from, (string)a_a_to);
                    } break;

                case 3:
                    {
                        t_t_result &= Simple.Check_Byte("3", (byte)a_a_from, (byte)(ulong)a_a_to);
                    } break;

                case 4:
                    {
                        t_t_result &= Simple.Check_Enumerator("4", (System.Collections.Generic.List <int>)a_a_from, (System.Collections.Generic.List <System.Object>)a_a_to, (string a_a_a_label, int a_a_a_index, in int a_a_a_from, in System.Object a_a_a_to) => {
                            bool t_t_t_result = true;
                            t_t_t_result     &= Simple.Check_Int(a_a_a_label, (int)a_a_a_from, (int)(ulong)a_a_a_to);
                            return(t_t_t_result);
                        });
                    } break;