Esempio n. 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_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);
        }
Esempio n. 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;

            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);
            });
Esempio n. 3
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;