示例#1
0
        public static Command write(int mapAssetId, int battleStationId, string battleStationName, int secondsLeft, int totalSeconds, string ownerClan, FactionModule affiliatedFaction)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(mapAssetId);
            cmd.Integer(battleStationId);
            cmd.UTF(battleStationName);
            cmd.Integer(secondsLeft);
            cmd.Integer(totalSeconds);
            cmd.UTF(ownerClan);
            cmd.AddBytes(affiliatedFaction.write());
            return(new Command(cmd.ToByteArray(), false));
        }
        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));
        }