Ejemplo n.º 1
0
        public async Task GetAchievement()
        {
            var result = await SteamServerStats.RequestUserStatsAsync(Garry);

            Assert.AreEqual(result, Result.OK);

            var value = SteamServerStats.GetAchievement(Garry, "COLLECT_100_WOOD");

            Assert.IsTrue(value);

            value = SteamServerStats.GetAchievement(Garry, "ACHIVEMENT_THAT_DOESNT_EXIST");
            Assert.IsFalse(value);
        }
Ejemplo n.º 2
0
        public static void Shutdown()
        {
            Event.DisposeAllServer();

            initialized = false;

            _internal = null;

            ShutdownInterfaces();
            SteamNetworkingUtils.Shutdown();
            SteamNetworkingSockets.Shutdown();
            SteamInventory.Shutdown();

            SteamServerStats.Shutdown();

            SteamGameServer.Shutdown();
        }