Exemple #1
0
        public GameModel(GameScreen screen, GameModelInfo info)
        {
            this.screen = screen;
            Info = info;

            // colors
            BaseColor = Color.Transparent;
            HighlightColor = Color.Transparent;
            HighlightIntensity = 0f;
            Alpha = 1f;
        }
 public GameModel this[GameScreen screen, GameModelInfo info]
 {
     get {
         if (cache.ContainsKey (info)) {
             return cache [info];
         }
         else {
             return cache [info] = CreateModel(screen, info);
         }
     }
 }