Ejemplo n.º 1
0
        static void Main()
        {
            var services = new ServiceCollection();

            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json", optional: false)
                                .Build();

            services.AddDbContext <DataContext.RDVFDataContext>(optionsBuilder => optionsBuilder.UseMySql(configuration.GetConnectionString("DefaultConnection")), ServiceLifetime.Transient);

            var serviceProvider = services.BuildServiceProvider();

#if DEBUG
            var flistUsername    = "";
            var flistPassword    = "";
            var botCharacterName = ""; //The character used to log in with
            var adminName        = "Aelith Blanchette";
            var channelToWatch   = new List <string>()
            {
                "adh-2bef661405a83f74cd94"
            };                                                                      //Your testing channel code, obtainable with /code in the chat
            var bot = new FChatSharpLib.Bot(flistUsername, flistPassword, botCharacterName, adminName, true, 4000);
            bot.Connect();

            RDV = new RendezvousFighting(serviceProvider, channelToWatch, IsDebugging);
            RDV.Run();
#else
            var channelToWatch = new List <string>()
            {
                "adh-b3c88050e9c580631c70"
            };
            RDV = new RendezvousFighting(serviceProvider, channelToWatch, IsDebugging);
            RDV.Run();
#endif
        }
Ejemplo n.º 2
0
 public Battlefield(RendezvousFighting plugin)
 {
     Plugin           = plugin;
     WindowController = new WindowController();
     Fighters         = new List <Fighter>();
     Stage            = PickStage();
     InGrabRange      = false;
     DisplayGrabbed   = true;
     IsActive         = false;
 }