public static bool IsCardT <T>(this uint u) where T : BaseCard { return(IdGenerator.GetById(u) is T); }
public static BaseCard AsCard(this uint u) { return(IdGenerator.GetById(u)); }
public static T AsCardT <T>(this uint u) where T : BaseCard { return((T)IdGenerator.GetById(u)); }
public BaseCard(GameState game) { Game = game; Id = IdGenerator.NextId(this); }