예제 #1
0
        public static bool SetUpConfig()
        {
            try
            {
                if (!Directory.Exists(BH.configDir))
                {
                    Directory.CreateDirectory(BH.configDir);
                }

                if (File.Exists(BH.configPath))
                {
                    BH.config = BHConfig.Read(BH.configPath);
                }
                else
                {
                    BH.config.Write(BH.configPath);
                }
                return(true);
            }
            catch (Exception ex)
            {
                Log.ConsoleError("Error in BHConfig.json!");
                Log.ConsoleError(ex.ToString());
                return(false);
            }
        }
예제 #2
0
파일: BH.cs 프로젝트: bippity/BountyHunt
        public BH(Main game)
            : base(game)
        {
            Order = -1;

            config = new BHConfig();
        }
예제 #3
0
        public BH(Main game)
            : base(game)
        {
            Order = -1;

            config = new BHConfig();
        }