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