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(AssetTypeModule assetType, int uid)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(assetType.write());
            cmd.Integer(uid);
            return(new Command(cmd.ToByteArray(), false));
        }
Esempio n. 3
0
        public static Command write(string hash, AssetTypeModule type, PartnerTypeModule partnerType, int x, int y, int uid)
        {
            var cmd = new ByteArray(ID);

            cmd.UTF(hash);
            cmd.AddBytes(type.write());
            cmd.AddBytes(partnerType.write());
            cmd.Integer(x);
            cmd.Integer(y);
            cmd.Integer(uid);
            return(new Command(cmd.ToByteArray(), false));
        }
Esempio n. 4
0
        public static Command write(int assetId, AssetTypeModule type, int designId, int expansionStage, int hp, int maxHp, bool shielded, int shield, int maxShield)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(assetId);
            cmd.AddBytes(type.write());
            cmd.Integer(designId);
            cmd.Integer(expansionStage);
            cmd.Integer(hp);
            cmd.Integer(maxHp);
            cmd.Boolean(shielded);
            cmd.Integer(shield);
            cmd.Integer(maxShield);
            return(new Command(cmd.ToByteArray(), false));
        }