コード例 #1
0
 public GraphicsController(Map world, Action updateWorldHandler)
 {
     this.CursorVisible      = false;
     this.gameWorld          = world;
     this.updateWorldHandler = updateWorldHandler;
     this.cameraService      = new CameraService();
     this.textDrawingService = new TextDrawingService();
     this.fpsCounter         = new FpsCounter();
     this.drawingService     = new DrawingService(this.cameraService, this.textDrawingService);
     this.vehicleFinder      = new VehicleFinder();
     TexturesLoader.InitTextures();
 }
コード例 #2
0
ファイル: DrawingService.cs プロジェクト: KamilLepek/Traffic
 public DrawingService(CameraService camServ, TextDrawingService textServ)
 {
     this.cameraService = camServ;
     this.textDrawingService = textServ;
 }