public void Unpack(DataUnpacker unpacker) { unpacker.Unpack(out this.DecisionText); unpacker.Unpack(out this.IsDialog); int size; unpacker.Unpack(out size); this.Predicates = new List<HamPredicate>(); for (int i = 0; i < size; ++i) { HamPredicate p = new HamPredicate(); p.Unpack(unpacker); this.Predicates.Add(p); } unpacker.Unpack(out this.NextNodeID); }
public override void Unpack(DataUnpacker unpacker) { unpacker.Unpack(out this.DefaultNextID); int size; this.Predicates = new List<HamPredicate>(); unpacker.Unpack(out size); for (int i = 0; i < size; ++i) { HamPredicate predicate = new HamPredicate(); predicate.Unpack(unpacker); this.Predicates.Add(predicate); } }