Exemple #1
0
        public byte[] write()
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(battleStationId);
            cmd.Float(ownProgress);
            cmd.Float(bestProgress);
            cmd.UTF(ownClanName);
            cmd.UTF(bestProgressClanName);
            cmd.AddBytes(state.write());
            cmd.Boolean(buildButtonActive);
            return(cmd.Message.ToArray());
        }
        public byte[] write()
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(mapAssetId);
            cmd.Integer(battleStationId);
            cmd.UTF(battleStationName);
            cmd.Boolean(deflectorShieldActive);
            cmd.Integer(deflectorShieldSeconds);
            cmd.Integer(deflectorShieldSecondsMax);
            cmd.Integer(attackRating);
            cmd.Integer(defenceRating);
            cmd.Integer(repairRating);
            cmd.Integer(honorBoosterRating);
            cmd.Integer(experienceBoosterRating);
            cmd.Integer(damageBoosterRating);
            cmd.Integer(deflectorShieldRate);
            cmd.Integer(repairPrice);
            cmd.AddBytes(equipment.write());
            return(cmd.Message.ToArray());
        }