예제 #1
0
 public static Version GetVersion(this IGameDatabase db, string key)
 {
     if (!db.ContainsKey(key))
     {
         return(null);
     }
     return(new Version(db.GetString(key)));
 }
예제 #2
0
        public static long GetLong(this IGameDatabase db, string key)
        {
            var bytes = Convert.FromBase64String(db.GetString(key));

            return(BitConverter.ToInt64(bytes, 0));
        }