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