public byte[] write()
        {
            ByteArray param1 = new ByteArray(ID);

            param1.writeBoolean(this.disconnected);
            param1.write(ship.write());
            param1.writeShort(19162);
            param1.write(faction.write());
            param1.writeUTF(this.name);
            param1.write(information.write());
            param1.write(target.write());
            param1.writeBoolean(this.active);
            param1.write(location.write());
            param1.writeBoolean(this.attacking);
            param1.writeInt(this.level >> 3 | this.level << 29);
            param1.writeBoolean(this.var51u);
            param1.writeBoolean(this.cloaked);
            param1.write(hades.write());
            param1.writeInt(this.id >> 16 | this.id << 16);
            param1.write(clan.write());
            return(param1.Message.ToArray());
        }
        public static byte[] write(int mapAssetId, int battleStationId, string battleStationName, int secondsLeft, int totalSeconds, string ownerClan, FactionModule affiliatedFaction)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.writeUTF(ownerClan);
            param1.writeShort(-21121);
            param1.writeShort(566);
            param1.writeInt(battleStationId << 8 | battleStationId >> 24);
            param1.write(affiliatedFaction.write());
            param1.writeInt(totalSeconds << 4 | totalSeconds >> 28);
            param1.writeInt(secondsLeft << 12 | secondsLeft >> 20);
            param1.writeInt(mapAssetId << 13 | mapAssetId >> 19);
            param1.writeUTF(battleStationName);
            return(param1.ToByteArray());
        }
        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)
        {
            var param1 = new ByteArray(ID);

            param1.write(faction.write());
            param1.writeUTF(battleStationName);
            param1.writeInt(mapAssetId >> 8 | mapAssetId << 24);
            param1.writeInt(battleStationId << 5 | battleStationId >> 27);
            param1.writeInt(deflectorShieldMinutesMin >> 9 | deflectorShieldMinutesMin << 23);
            param1.writeInt(deflectorShieldMinutesMax << 10 | deflectorShieldMinutesMax >> 22);
            param1.writeShort(21318);
            param1.writeInt(deflectorShieldMinutesIncrement << 14 | deflectorShieldMinutesIncrement >> 18);
            param1.writeUTF(clanName);
            param1.write(availableModules.write());
            param1.write(state.write());
            param1.writeBoolean(deflectorDeactivationPossible);
            return(param1.ToByteArray());
        }