예제 #1
0
        public static TtaCivilopedia GetCivilopedia(String gameVersion)
        {
            TtaTranslation.LoadDictionary();
            LoadCiviloPedia();

            return(Civilopedias[gameVersion]);
        }
    public void 登录并打开尝鲜10_Clicked()
    {
        //登录
        TtaTranslation.LoadDictionary();
        SceneTransporter.Server = new BgoServer();

        Assets.CSharpCode.UI.Util.LogRecorder.Log("Clicked");

        StartCoroutine(SceneTransporter.Server.LogIn("hsyhhssyy", "hsy12345", () =>
        {
            Assets.CSharpCode.UI.Util.LogRecorder.Log("Logged in!");

            BgoGame g = new BgoGame {
                GameId = "7279178", Nat = "2", Name = "2.5尝鲜 10", Version = "2.0"
            };

            SceneTransporter.CurrentGame = g;

            SceneManager.LoadScene("Scene/BoardScene-PC");
        }));
    }
    public void 根据测试文本展示页面_Clicked()
    {
        //登录
        TtaTranslation.LoadDictionary();
        SceneTransporter.Server = new BgoTestServer();
        (SceneTransporter.Server as BgoTestServer).File = "Test/TestPage1";

        Assets.CSharpCode.UI.Util.LogRecorder.Log("Clicked");

        StartCoroutine(SceneTransporter.Server.LogIn("username", "password", () =>
        {
            Assets.CSharpCode.UI.Util.LogRecorder.Log("Logged in!");

            BgoGame g = new BgoGame {
                GameId = "7279178", Nat = "2", Name = "Text based Game"
            };

            SceneTransporter.CurrentGame = g;

            ExtensionMethods.LoadScene("Scene/BoardScene-PC", 1);
        }));
    }
        void Start()
        {
            TtaTranslation.LoadDictionary();

            Assets.CSharpCode.UI.Util.LogRecorder.Log("App Loaded");
        }