프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Bounds | |||
Height | Int32 | ||
LayerOrder | LayerInfo[] | ||
LoadTextures | Boolean | ||
ObjectLayers | ObjectLayerList | ||
Orientation | MapOrientation | ||
Properties | Property>.Dictionary | ||
SourceTiles | Tile[] | ||
TileHeight | Int32 | ||
TileLayers | TileLayerList | ||
TileWidth | Int32 | ||
Tilesets | Tileset[] | ||
Width | Int32 |
메소드 | 설명 | |
---|---|---|
Draw ( |
Draws all visible tile layers
|
|
Draw ( |
Draws all visible tile layers
|
|
DrawLayer ( |
Draws given tile layer
|
|
DrawMapObject ( |
Method to draw a MapObject
|
|
DrawObjectLayer ( |
Draws all objects on the given object layer
|
|
DrawRectangle ( |
Method to draw a Rectangle
|
|
DrawTileObject ( |
Method to draw a MapObject that represents a tile object
|
|
DrawTileObject ( |
Method to draw a MapObject that represents a tile object
|
|
GetObjectsInRegion ( |
Returns a collection of MapObjects inside the given region
|
|
GetObjectsInRegion ( |
Returns a collection of MapObjects inside the given region
|
|
GetTilesInRegion ( |
Returns a collection of TileData inside the given region
|
|
GetTilesInRegion ( |
Returns a collection of TileData inside the given region
|
|
InitObjectDrawing ( GraphicsDevice graphicsDevice ) : void |
Enables rendering of map objects
|
|
Translate ( Point location, Rectangle relativeTo ) : Point |
Translates a location to screen space
|
|
Translate ( Rectangle location, Rectangle relativeTo ) : Rectangle |
Translates a location to screen space
|
|
Translate ( Vector2 location, Rectangle relativeTo ) : Vector2 |
Translates a location to screen space
|
|
Translate ( Point &location, Rectangle &relativeTo ) : void |
Translates a location to screen space
|
|
Translate ( Rectangle &location, Rectangle &relativeTo ) : void |
Translates a location to screen space
|
|
Translate ( Vector2 &location, Rectangle &relativeTo ) : void |
Translates a location to screen space
|
메소드 | 설명 | |
---|---|---|
CreatePolygonTextures ( ) : void | ||
DrawLayer ( |
public Draw ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
region | Region of the map in pixels to draw | |
리턴 | void |
public Draw ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
region | Region of the map in pixels to draw | |
drawHiddenLayers | System.Boolean | If true, draws layers regardless of TileLayer.Visible flag |
리턴 | void |
public DrawLayer ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
layerID | Index of the layer to draw in the Map.TileLayers collection | |
region | Region of the map in pixels to draw | |
layerDepth | System.Single | LayerDepth value to pass to SpriteBatch |
리턴 | void |
public DrawMapObject ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
objectLayerID | Index of the layer to draw in the Map.ObjectLayers collection | |
objectID | Index of the object to draw in the Map.ObjectLayers.MapObjects collection | |
region | Region of the map in pixels to draw | |
layerDepth | System.Single | LayerDepth value to pass to SpriteBatch |
리턴 | void |
public DrawObjectLayer ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
objectLayerID | Index of the layer to draw in the Map.ObjectLayers collection | |
region | Region of the map in pixels to draw | |
layerDepth | System.Single | LayerDepth value to pass to SpriteBatch |
리턴 | void |
public static DrawRectangle ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
rect | The Rectangle to draw, in map pixels | |
region | Region of the map in pixels currently visible | |
layerDepth | System.Single | LayerDepth value to pass to SpriteBatch |
linecolor | Color | Color of the Rectangle border |
fillColor | Color | Color to fill the Rectangle with |
리턴 | void |
public DrawTileObject ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
objectLayerID | Index of the layer to draw in the Map.ObjectLayers collection | |
objectID | Index of the object to draw in the Map.ObjectLayers.MapObjects collection | |
region | Region of the map in pixels to draw | |
layerDepth | System.Single | LayerDepth value to pass to SpriteBatch |
color | Color | Color of the object |
리턴 | void |
public DrawTileObject ( |
||
spriteBatch | XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method | |
objectLayerID | int | Index of the layer to draw in the Map.ObjectLayers collection |
objectID | int | Index of the object to draw in the Map.ObjectLayers.MapObjects collection |
region | Region of the map in pixels to draw | |
layerDepth | float | LayerDepth value to pass to SpriteBatch |
color | Color | Color of the object |
리턴 | void |
public GetObjectsInRegion ( |
||
objectLayerID | The object layer to check | |
region | The region, in pixles, to check | |
리턴 | IEnumerable |
public GetObjectsInRegion ( |
||
region | The region, in pixles, to check | |
리턴 | IEnumerable |
public GetTilesInRegion ( |
||
tileLayerID | The tile layer to check | |
region | The region, in pixles, to check | |
리턴 | IEnumerable |
public GetTilesInRegion ( |
||
region | The region, in pixles, to check | |
리턴 | IEnumerable |
public static InitObjectDrawing ( GraphicsDevice graphicsDevice ) : void | ||
graphicsDevice | GraphicsDevice | The graphics device to us in creating textures to support object rendering |
리턴 | void |
public static Translate ( Point location, Rectangle relativeTo ) : Point | ||
location | Point | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | Point |
public static Translate ( Rectangle location, Rectangle relativeTo ) : Rectangle | ||
location | Rectangle | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | Rectangle |
public static Translate ( Vector2 location, Rectangle relativeTo ) : Vector2 | ||
location | Vector2 | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | Vector2 |
public static Translate ( Point &location, Rectangle &relativeTo ) : void | ||
location | Point | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | void |
public static Translate ( Rectangle &location, Rectangle &relativeTo ) : void | ||
location | Rectangle | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | void |
public static Translate ( Vector2 &location, Rectangle &relativeTo ) : void | ||
location | Vector2 | The location in map pixel coordinates |
relativeTo | Rectangle | Region of the map that is on screen |
리턴 | void |
public Rectangle,Microsoft.Xna.Framework Bounds | ||
리턴 |