コード例 #1
0
 public InputHandler(GridHandler gridHandler, CameraHandler cameraHandler, TileHandler tileHandler, ModeHandler modeHandler, Canvas canvas, Information information, TileProperty tileProperty)
 {
     _gridHandler   = gridHandler;
     _cameraHandler = cameraHandler;
     _tileHandler   = tileHandler;
     _modeHandler   = modeHandler;
     _canvas        = canvas;
     _information   = information;
     _tileProperty  = tileProperty;
 }
コード例 #2
0
        public DrawHandler(Canvas canvas, GridHandler gridHandler, CameraHandler cameraHandler, TilesetLoader tilesetHandler, TileHandler tileHandler, ModeHandler modeHandler)
        {
            _canvas         = canvas;
            _gridHandler    = gridHandler;
            _cameraHandler  = cameraHandler;
            _tilesetHandler = tilesetHandler;
            _tileHandler    = tileHandler;
            _modeHandler    = modeHandler;

            _stopWatch            = new Stopwatch();
            SelectedTileTextureId = 0;

            GridThickness = 1;

            _gridPen     = new System.Drawing.Pen(System.Drawing.Color.WhiteSmoke, GridThickness);
            _hoverPen    = new System.Drawing.Pen(System.Drawing.Color.LightGray, 3);
            _selectedPen = new System.Drawing.Pen(System.Drawing.Color.GhostWhite, 3);

            _fpsFont = new System.Drawing.Font("Monospace", 12);
        }