示例#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);
        }