示例#1
0
        public static void save_Conditions_mask(Save_tag path, Conditions_mask c)
        {
            Save_tag a = path.copy();

            a.add_tag("simple_mask");
            save_bool(a, c.true_for_AND_mask_false_for_OR_mask);
        }
示例#2
0
        public static Conditions_mask load_Conditions_mask(Save_tag path)
        {
            Save_tag a = path.copy();

            a.add_tag("simple_mask");
            Conditions_mask cm = new Conditions_mask(load_bool(a));

            return(cm);
        }
示例#3
0
        public static Trigger load_Trigger(Save_tag path)
        {
            Save_tag a = path.copy();

            a.add_tag("events");
            List <Event> a1 = load_list_of_Events(a);
            Save_tag     b  = path.copy();

            b.add_tag("conditions");
            List <Condition> b1 = load_list_of_Conditions(b);
            Save_tag         c  = path.copy();

            c.add_tag("actions");
            List <Game_Action> c1 = load_list_of_Game_Actions(c);
            Save_tag           d  = path.copy();

            d.add_tag("deactivate_actions");
            List <Game_Action> d1 = load_list_of_Game_Actions(d);
            Save_tag           e  = path.copy();

            e.add_tag("conditions_mask");
            Conditions_mask e1 = load_Conditions_mask(e);
            Save_tag        f  = path.copy();

            f.add_tag("description");
            string   f1 = load_string(f);
            Save_tag g  = path.copy();

            g.add_tag("active");
            bool     g1 = load_bool(g);
            Save_tag h  = path.copy();

            h.add_tag("disposable");
            bool     h1 = load_bool(h);
            Save_tag i  = path.copy();

            i.add_tag("endless");
            bool     i1 = load_bool(i);
            Save_tag j  = path.copy();

            j.add_tag("time_to_deactivate");
            int      j1 = load_int(j);
            Save_tag k  = path.copy();

            k.add_tag("start_time");
            int     k1 = load_int(k);
            Trigger tr = new Trigger(k1, i1, g1, a1, b1, c1, h1, j1, d1, e1, f1);

            return(tr);
        }