コード例 #1
0
 public Rectangle GetDrawRectangle(TileCoord coord, TowerWidth width, TowerHeight height)
 {
     return(new Rectangle((int)coordHandler.WorldToScreen(coord.ToVector2()).X + 1, (int)coordHandler.WorldToScreen(coord.ToVector2()).Y + 1, coordHandler.ScaleToZoom((int)width), coordHandler.ScaleToZoom((int)height)));
 }
コード例 #2
0
 public TowerSize(TowerWidth _width, TowerHeight _height)
 {
     Width  = _width;
     Height = _height;
 }