示例#1
0
        protected override string GetSymbolTargetName(AstSymbol symbol)
        {
            if (symbol.IsValidFrame)
            {
                return(UniqueNameGenerator.GetUniqueName(symbol.Name));
            }

            throw new InvalidOperationException();
        }
        static void Main(string[] args)
        {
            AgentCommandLineOptions options  = CommandLineParser.ParseArgs <AgentCommandLineOptions>(args, new AgentCommandLineOptions());
            GameMasterSettings      settings = Configuration.FromFile <GameMasterSettings>(options.Conf);
            GameMasterClient        client   = new GameMasterClient(new Connection(options.Address, options.Port), settings,
                                                                    new Logger(UniqueNameGenerator.GetUniqueName(settings.GameDefinition.GameName)), new Game(), new Ranking());

            client.Connect();
            client.Disconnect();
        }