diff import/myrrdin/tileset.d @ 10:79b534bbda65

new director model
author fred@reichbier.de
date Sat, 19 Jul 2008 19:29:00 +0200
parents 806b3781f4e4
children
line wrap: on
line diff
--- a/import/myrrdin/tileset.d	Sat Jul 19 17:27:34 2008 +0200
+++ b/import/myrrdin/tileset.d	Sat Jul 19 19:29:00 2008 +0200
@@ -28,6 +28,7 @@
 import dsfml.graphics.all;
 
 import myrrdin.imagecache;
+import myrrdin.director;
 
 alias Image[int] TileList;
 
@@ -35,8 +36,8 @@
     private Cache cache;
     public TileList tiles;
 
-    this(Cache cache) {
-	this.cache = cache;	
+    this() {
+	this.cache = Director.cache;	
     }
 
     void add_tile(int id, char[] filename) {