public static byte[] write(int mapAssetId, int battleStationId, string battleStationName, string clanName, FactionModule faction, BattleStationStatusCommand state, AvailableModulesCommand availableModules,
                                   int deflectorShieldMinutesMin, int deflectorShieldMinutesMax, int deflectorShieldMinutesIncrement, bool deflectorDeactivationPossible)
        {
            ByteArray enc = new ByteArray(ID);

            enc.Integer(mapAssetId);
            enc.Integer(battleStationId);
            enc.UTF(battleStationName);
            enc.UTF(clanName);
            enc.AddBytes(faction.write());
            enc.AddBytes(state.write());
            enc.AddBytes(availableModules.write());
            enc.Integer(deflectorShieldMinutesMin);
            enc.Integer(deflectorShieldMinutesMax);
            enc.Integer(deflectorShieldMinutesIncrement);
            enc.Boolean(deflectorDeactivationPossible);
            return(enc.ToByteArray());
        }
        public static byte[] CMD(int mapAssetId, int battleStationId, string battleStationName, int secondsLeft, int totalSeconds, string ownerClan, FactionModule affiliatedFaction)
        {
            ByteArray enc = new ByteArray(ID);

            enc.Integer(mapAssetId);
            enc.Integer(battleStationId);
            enc.UTF(battleStationName);
            enc.Integer(secondsLeft);
            enc.Integer(totalSeconds);
            enc.UTF(ownerClan);
            enc.AddBytes(affiliatedFaction.write());
            return(enc.ToByteArray());
        }