コード例 #1
0
        private static SteamID Create(Object id, bool fetch, bool cache)
        {
            SteamID steamid;

            if (!cache) {
                steamid = new SteamID(id);
            } else if (!IsCached(id)) {
                steamid = new SteamID(id);
                cacheMemory[id] = steamid;
            } else {
                steamid = cacheMemory[id];
            }

            if (fetch && !steamid.IsFetched) steamid.FetchData(cache);

            return steamid;
        }
コード例 #2
0
 public static GameStats Create(SteamID steamid, string gamename)
 {
     if (steamid.CustomUrl != null)
         return Create(steamid.CustomUrl, gamename);
     else
         return Create(steamid.SteamID64, gamename);
 }