Exemple #1
0
        public static Command write(int mapAssetId, int battleStationId, string battleStationName, AsteroidProgressCommand progress, AvailableModulesCommand availableModules, int buildTimeInMinutesMin, int buildTimeInMinutesMax, int buildTimeInMinutesIncrement)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(mapAssetId);
            cmd.Integer(battleStationId);
            cmd.UTF(battleStationName);
            cmd.AddBytes(progress.write());
            cmd.AddBytes(availableModules.write());
            cmd.Integer(buildTimeInMinutesMin);
            cmd.Integer(buildTimeInMinutesMax);
            cmd.Integer(buildTimeInMinutesIncrement);
            return(new Command(cmd.ToByteArray(), false));
        }
Exemple #2
0
        public static Command write(int mapAssetId, int battleStationId, string battleStationName, string clanName, FactionModule faction, BattleStationStatusCommand state, AvailableModulesCommand availableModules,
                                    int deflectorShieldMinutesMin, int deflectorShieldMinutesMax, int deflectorShieldMinutesIncrement, bool deflectorDeactivationPossible)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(mapAssetId);
            cmd.Integer(battleStationId);
            cmd.UTF(battleStationName);
            cmd.UTF(clanName);
            cmd.AddBytes(faction.write());
            cmd.AddBytes(state.write());
            cmd.AddBytes(availableModules.write());
            cmd.Integer(deflectorShieldMinutesMin);
            cmd.Integer(deflectorShieldMinutesMax);
            cmd.Integer(deflectorShieldMinutesIncrement);
            cmd.Boolean(deflectorDeactivationPossible);
            return(new Command(cmd.ToByteArray(), false));
        }