示例#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_String("value_u", a_from.value_u, a_to.value_u);
            t_result &= Simple.Check_String("value_x", a_from.value_x, a_to.value_x);

            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;

            //文字。
            t_result &= Simple.Check_String("value_string", a_from.value_string, a_to.value_string);

            //ベル。
            t_result &= Simple.Check_String("value_bell", a_from.value_bell, a_to.value_bell);

            //ヌル。
            t_result &= Simple.Check_String("value_null", a_from.value_null, a_to.value_null);

            //バックスペース。
            t_result &= Simple.Check_String("value_backspace", a_from.value_backspace, a_to.value_backspace);

            //ラインフィード。
            t_result &= Simple.Check_String("value_linefeed", a_from.value_linefeed, a_to.value_linefeed);

            //タブ。
            t_result &= Simple.Check_String("value_tab", a_from.value_tab, a_to.value_tab);

            //ダブルクォーテーション。
            t_result &= Simple.Check_String("value_double_quotation", a_from.value_double_quotation, a_to.value_double_quotation);

            //シングルクォーテーション。
            t_result &= Simple.Check_String("value_single_quotation", a_from.value_single_quotation, a_to.value_single_quotation);

            //バックスラッシュ。
            t_result &= Simple.Check_String("value_back_slash", a_from.value_back_slash, a_to.value_back_slash);

            //キャリッジリターン。
            t_result &= Simple.Check_String("value_carriage_return", a_from.value_carriage_return, a_to.value_carriage_return);

            //スラッシュ。
            t_result &= Simple.Check_String("value_slash", a_from.value_slash, a_to.value_slash);

            //ニューページ。
            t_result &= Simple.Check_String("value_new_page", a_from.value_new_page, a_to.value_new_page);

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