Beispiel #1
0
        public static Command write(PetGearTypeModule gearType, int level, int amount, bool enabled)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(gearType.write());
            cmd.Integer(level);
            cmd.Integer(amount);
            cmd.Boolean(enabled);
            return(new Command(cmd.ToByteArray(), false));
        }
Beispiel #2
0
        public static Command write(PetGearTypeModule gearType, List <int> optionalParams)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(gearType.write());
            cmd.Integer(optionalParams.Count);
            foreach (var param in optionalParams)
            {
                cmd.Integer(param);
            }
            return(new Command(cmd.ToByteArray(), false));
        }