Пример #1
0
 //Copies values from 'from'... a copy constructor basically.
 public void Copy(Object_Base from)
 {
     this.Name = from.Name;
     this.tval = from.tval;
     //this.Next = from.Next; //I don't think we need that... you can't set it in a config
     this.flags.copy(from.flags);
     this.break_perc = from.break_perc;
 }
Пример #2
0
 //Copies values from 'from'... a copy constructor basically.
 public void Copy(Object_Base from)
 {
     this.Name = from.Name;
     this.tval = from.tval;
     //this.Next = from.Next; //I don't think we need that... you can't set it in a config
     this.flags.copy(from.flags);
     this.break_perc = from.break_perc;
 }
Пример #3
0
        public static Parser.Error parse_kb_n(Parser p)
        {
            kb_parsedata d = p.priv as kb_parsedata;
            Misc.assert(d != null);

            Object.Object_Base kb = new Object.Object_Base();
            kb.Copy(d.defaults);

            kb.Next = d.kb;
            d.kb = kb;

            kb.tval = Object.TVal.find_idx(p.getsym("tval"));
            if (kb.tval == -1)
                return Parser.Error.UNRECOGNISED_TVAL;

            kb.Name = p.getstr("name");

            return Parser.Error.NONE;
        }