C# 클래스 Sphere.Core.Map

A Sphere map object.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
CloneAllLayerTiles ( ) : ]>.List

Returns a list of copied tiles of each layer.

CreateNew ( short width, short height, short tileWidth, short tileHeight, string tilesetPath ) : void

Creates a new map with values.

Dispose ( ) : void

Disposes and clears this object.

Load ( string filename ) : bool

Loads a map from the given filename.

Map ( ) : System

Creates a new, empty map.

ResizeAllLayers ( short width, short height ) : void

Resizes the map's layers to the new size.

Save ( string filename ) : bool

Attempts to save the map to the given filename.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

CloneAllLayerTiles() 공개 메소드

Returns a list of copied tiles of each layer.
public CloneAllLayerTiles ( ) : ]>.List
리턴 ]>.List

CreateNew() 공개 메소드

Creates a new map with values.
public CreateNew ( short width, short height, short tileWidth, short tileHeight, string tilesetPath ) : void
width short The width in tiles.
height short The height in tiles.
tileWidth short The tilewidth in pixels.
tileHeight short The tileheight in pixels.
tilesetPath string The path to the tileset.
리턴 void

Dispose() 공개 메소드

Disposes and clears this object.
public Dispose ( ) : void
리턴 void

Load() 공개 메소드

Loads a map from the given filename.
public Load ( string filename ) : bool
filename string The filename of the map.
리턴 bool

Map() 공개 메소드

Creates a new, empty map.
public Map ( ) : System
리턴 System

ResizeAllLayers() 공개 메소드

Resizes the map's layers to the new size.
public ResizeAllLayers ( short width, short height ) : void
width short The new width in tiles.
height short The new height in tiles.
리턴 void

Save() 공개 메소드

Attempts to save the map to the given filename.
public Save ( string filename ) : bool
filename string The path to save the Map to.
리턴 bool