/** チェック。 */ 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_Enum("value_type", a_from.type, a_to.type); t_result &= Simple.Check_Enum("type_byte_min", a_from.type_byte_min, a_to.type_byte_min); t_result &= Simple.Check_Enum("type_sbyte_min", a_from.type_sbyte_min, a_to.type_sbyte_min); t_result &= Simple.Check_Enum("type_short_min", a_from.type_short_min, a_to.type_short_min); t_result &= Simple.Check_Enum("type_ushort_min", a_from.type_ushort_min, a_to.type_ushort_min); t_result &= Simple.Check_Enum("type_int_min", a_from.type_int_min, a_to.type_int_min); t_result &= Simple.Check_Enum("type_uint_min", a_from.type_uint_min, a_to.type_uint_min); t_result &= Simple.Check_Enum("type_long_min", a_from.type_long_min, a_to.type_long_min); t_result &= Simple.Check_Enum("type_ulong_min", a_from.type_ulong_min, a_to.type_ulong_min); t_result &= Simple.Check_Enum("type_byte_max", a_from.type_byte_max, a_to.type_byte_max); t_result &= Simple.Check_Enum("type_sbyte_max", a_from.type_sbyte_max, a_to.type_sbyte_max); t_result &= Simple.Check_Enum("type_short_max", a_from.type_short_max, a_to.type_short_max); t_result &= Simple.Check_Enum("type_ushort_max", a_from.type_ushort_max, a_to.type_ushort_max); t_result &= Simple.Check_Enum("type_int_max", a_from.type_int_max, a_to.type_int_max); t_result &= Simple.Check_Enum("type_uint_max", a_from.type_uint_max, a_to.type_uint_max); t_result &= Simple.Check_Enum("type_long_max", a_from.type_long_max, a_to.type_long_max); t_result &= Simple.Check_Enum("type_ulong_max", a_from.type_ulong_max, a_to.type_ulong_max); return(t_result); }
/** チェック。 */ 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_Enum("value_type", a_from.value_type, a_to.value_type); t_result &= Simple.Check_Enum("value_type_int", a_from.value_type_int, a_to.value_type_int); t_result &= Simple.Check_Enum("value_type_string", a_from.value_type_string, a_to.value_type_string); //list_type t_result &= Simple.Check_Enumerator("list_type", a_from.list_type, a_to.list_type, (string a_a_label, int a_a_index, in Type a_a_from, in Type a_a_to) => { bool t_t_result = true; t_t_result &= Simple.Check_Enum(a_a_label, a_a_from, a_a_to); return(t_t_result); });