public static Command 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)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(type.write());
            cmd.UTF(userName);
            cmd.Integer(factionId);
            cmd.UTF(clanTag);
            cmd.Integer(assetId);
            cmd.Integer(designId);
            cmd.Integer(expansionStage);
            cmd.Integer(posX);
            cmd.Integer(posY);
            cmd.Integer(clanId);
            cmd.Boolean(invisible);
            cmd.Boolean(visibleOnWarnRadar);
            cmd.Boolean(detectedByWarnRadar);
            cmd.AddBytes(clanRelation.write());
            cmd.Integer(modifier.Count);
            foreach (var _loc2_ in modifier)
            {
                cmd.AddBytes(_loc2_.write());
            }
            return(new Command(cmd.ToByteArray(), false));
        }
        public static Command 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> modifiers)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(userId);
            cmd.Integer(shipType);
            cmd.Integer(expansionStage);
            cmd.UTF(clanTag);
            cmd.UTF(userName);
            cmd.Integer(x);
            cmd.Integer(y);
            cmd.Integer(factionId);
            cmd.Integer(clanId);
            cmd.Integer(dailyRank);
            cmd.Boolean(warnBox);
            cmd.AddBytes(clanDiplomacy.write());
            cmd.Integer(galaxyGatesDone);
            cmd.Boolean(useSystemFont);
            cmd.Boolean(npc);
            cmd.Boolean(cloaked);
            cmd.Integer(motherShipId);
            cmd.Integer(positionIndex);
            cmd.Integer(modifiers.Count);
            foreach (var modifier in modifiers)
            {
                cmd.AddBytes(modifier.write());
            }
            return(new Command(cmd.ToByteArray(), false));
        }
Exemple #3
0
        public static Command 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 cmd = new ByteArray(ID);

            cmd.Integer(ownerId);
            cmd.Integer(petId);
            cmd.Short(petDesignId);
            cmd.Short(expansionStage);
            cmd.UTF(petName);
            cmd.Short(petFactionId);
            cmd.Integer(petClanID);
            cmd.Short(petLevel);
            cmd.UTF(clanTag);
            cmd.AddBytes(clanRelationship.write());
            cmd.Integer(x);
            cmd.Integer(y);
            cmd.Integer(petSpeed);
            cmd.Boolean(isInIdleMode);
            cmd.Boolean(isVisible);
            return(new Command(cmd.ToByteArray(), false));
        }