Пример #1
0
        public static Command write(int questConditionId, QuestConditionStateModule state)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(questConditionId);
            cmd.AddBytes(state.write());
            return(new Command(cmd.ToByteArray(), false));
        }
 public QuestConditionModule(int id, List <int> matches, short type, short displayType, double targetValue, bool mandatory, QuestConditionStateModule state, List <QuestConditionModule> subConditions)
 {
     this.id            = id;
     this.matches       = matches;
     this.type          = type;
     this.displayType   = displayType;
     this.targetValue   = targetValue;
     this.mandatory     = mandatory;
     this.state         = state;
     this.subConditions = subConditions;
 }