public static byte[] write(int userId, int shipType, int expansionStage, string clanTag, string userName, int x, int y,
                                   int factionId, int clanId, int dailyRank, bool warnBox, ClanRelationModule clanDiplomacy, int galaxyGatesDone, bool useSystemFont, bool npc, bool cloaked, int motherShipId, int positionIndex, List <VisualModifierCommand> modifier)
        {
            var param1 = new ByteArray(ID);

            param1.writeInt(userId);
            param1.writeInt(shipType);
            param1.writeInt(expansionStage);
            param1.writeUTF(clanTag);
            param1.writeUTF(userName);
            param1.writeInt(x);
            param1.writeInt(y);
            param1.writeInt(factionId);
            param1.writeInt(clanId);
            param1.writeInt(dailyRank);
            param1.writeBoolean(warnBox);
            param1.write(clanDiplomacy.write());
            param1.writeInt(galaxyGatesDone);
            param1.writeBoolean(useSystemFont);
            param1.writeBoolean(npc);
            param1.writeBoolean(cloaked);
            param1.writeInt(motherShipId);
            param1.writeInt(positionIndex);
            param1.writeInt(modifier.Count);
            foreach (var _loc2_ in modifier)
            {
                param1.write(_loc2_.write());
            }
            return(param1.ToByteArray());
        }
Exemplo n.º 2
0
        public static byte[] write(int userId, string shipType, int expansionStage, string clanTag, string userName, int x, int y, int factionId, int clanId, int dailyRank, bool warnBox, ClanRelationModule clanDiplomacy, int galaxyGatesDone, bool useSystemFont, bool npc, bool cloaked, int motherShipId, int positionIndex, List <VisualModifierCommand> modifier, class_11d var11d)
        {
            var param1 = new ByteArray(ID);

            param1.writeUTF(userName);
            param1.writeInt(galaxyGatesDone >> 13 | galaxyGatesDone << 19);
            param1.writeBoolean(useSystemFont);
            param1.writeInt(factionId >> 7 | factionId << 25);
            param1.writeInt(expansionStage << 6 | expansionStage >> 26);
            param1.writeUTF(shipType);
            param1.writeInt(dailyRank >> 4 | dailyRank << 28);
            param1.writeBoolean(npc);
            param1.writeInt(clanId << 3 | clanId >> 29);
            param1.write(clanDiplomacy.write());
            param1.writeBoolean(warnBox);
            param1.writeInt(motherShipId >> 16 | motherShipId << 16);
            param1.writeUTF(clanTag);
            param1.writeInt(modifier.Count);
            foreach (var m in modifier)
            {
                param1.write(m.write());
            }
            param1.writeBoolean(cloaked);
            param1.writeInt(userId >> 14 | userId << 18);
            param1.writeInt(positionIndex << 3 | positionIndex >> 29);
            param1.writeInt(x << 4 | x >> 28);
            param1.write(var11d.write());
            param1.writeInt(y << 9 | y >> 23);
            return(param1.ToByteArray());
        }
Exemplo n.º 3
0
        public static byte[] write(AssetTypeModule type, String name, int factionId, String clanTag, int assetId, int designId,
                                   int expansionStage, int x, int y, int clanId, bool invisible, bool visibleOnWarnRadar,
                                   bool detectedByWarnRadar, bool showBubble, ClanRelationModule clanRelation,
                                   List <VisualModifierCommand> modifier)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.writeInt(x >> 10 | x << 22);
            param1.writeInt(y >> 1 | y << 31);
            param1.writeUTF(name);
            param1.writeInt(modifier.Count);
            foreach (var m in modifier)
            {
                param1.write(m.write());
            }
            param1.writeBoolean(showBubble);
            param1.writeInt(expansionStage << 15 | expansionStage >> 17);
            param1.writeInt(designId << 16 | designId >> 16);
            param1.writeBoolean(invisible);
            param1.writeInt(factionId >> 3 | factionId << 29);
            param1.writeBoolean(visibleOnWarnRadar);
            param1.writeShort(24441);
            param1.write(clanRelation.write());
            param1.writeUTF(clanTag);
            param1.write(type.write());
            param1.writeInt(clanId >> 10 | clanId << 22);
            param1.writeBoolean(detectedByWarnRadar);
            param1.writeInt(assetId >> 5 | assetId << 27);
            return(param1.ToByteArray());
        }
Exemplo n.º 4
0
        public static byte[] write(AssetTypeModule type, String userName, int factionId, String clanTag, int assetId, int designId,
                                   int expansionStage, int posX, int posY, int clanId, bool invisible, bool visibleOnWarnRadar,
                                   bool detectedByWarnRadar, ClanRelationModule clanRelation,
                                   List <VisualModifierCommand> modifier)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.write(type.write());
            param1.writeUTF(userName);
            param1.writeInt(factionId);
            param1.writeUTF(clanTag);
            param1.writeInt(assetId);
            param1.writeInt(designId);
            param1.writeInt(expansionStage);
            param1.writeInt(posX);
            param1.writeInt(posY);
            param1.writeInt(clanId);
            param1.writeBoolean(invisible);
            param1.writeBoolean(visibleOnWarnRadar);
            param1.writeBoolean(detectedByWarnRadar);
            param1.write(clanRelation.write());
            param1.writeInt(modifier.Count);
            foreach (var _loc2_ in modifier)
            {
                param1.write(_loc2_.write());
            }
            return(param1.ToByteArray());
        }
Exemplo n.º 5
0
        public static byte[] write(int ownerId, int petId, short petDesignId, short expansionStage, string petName, short petFactionId, int petClanId, short petLevel, string clanTag, ClanRelationModule clanRelationship, int x, int y, int petSpeed, bool isInIdleMode, bool isVisible)
        {
            var param1 = new ByteArray(ID);

            param1.writeInt(ownerId);
            param1.writeInt(petId);
            param1.writeShort(petDesignId);
            param1.writeShort(expansionStage);
            param1.writeUTF(petName);
            param1.writeShort(petFactionId);
            param1.writeInt(petClanId);
            param1.writeShort(petLevel);
            param1.writeUTF(clanTag);
            param1.write(clanRelationship.write());
            param1.writeInt(x);
            param1.writeInt(y);
            param1.writeInt(petSpeed);
            param1.writeBoolean(isInIdleMode);
            param1.writeBoolean(isVisible);
            return(param1.ToByteArray());
        }
        public static byte[] write(int ownerId, int petId, short petDesignId, short expansionStage, string petName, short petFactionId, int petClanId, short petLevel, string clanTag, ClanRelationModule clanRelationship, int x, int y, int petSpeed, bool isInIdleMode, bool isVisible, class_11d varzL)
        {
            var param1 = new ByteArray(ID);

            param1.write(clanRelationship.write());
            param1.writeShort(petDesignId);
            param1.write(varzL.write());
            param1.writeShort(expansionStage);
            param1.writeInt(petSpeed >> 5 | petSpeed << 27);
            param1.writeUTF(petName);
            param1.writeInt(x << 5 | x >> 27);
            param1.writeBoolean(isInIdleMode);
            param1.writeShort(-20860);
            param1.writeInt(petClanId << 2 | petClanId >> 30);
            param1.writeInt(y >> 15 | y << 17);
            param1.writeInt(petId >> 7 | petId << 25);
            param1.writeInt(ownerId >> 16 | ownerId << 16);
            param1.writeBoolean(isVisible);
            param1.writeUTF(clanTag);
            param1.writeShort(petLevel);
            param1.writeShort(petFactionId);
            return(param1.ToByteArray());
        }