C# 클래스 World.ToyWorldCore.MapLoader

파일 보기 프로젝트 열기: GoodAI/BrainSimulator 1 사용 예제들

공개 메소드들

메소드 설명
LoadMap ( Map map, TilesetTable tilesetTable, Action initializer ) : IAtlas

Loads map from specified path, creates tiles and objects and put them into new Atlas object.

비공개 메소드들

메소드 설명
CreateInstance ( string className, int tileNumber, Type types, Vector2I position ) : Tile
FillNamedAreas ( IAtlas atlas, Map map ) : void
FillObjectLayer ( IAtlas atlas, ObjectGroup objectLayer, LayerType layerType, Action initializer, List tilesets, int tileWidth, int tileHeight, int worldHeight ) : IObjectLayer
FillTileLayer ( Layer layer, LayerType layerType, StaticTile>.Dictionary staticTilesContainer, TilesetTable tilesetTable, Action initializer, Random random ) : ITileLayer
LoadAgent ( TmxObject avatar, List tilesets ) : Avatar
LoadCharacter ( TmxObject tmxObject, List tilesets ) : Character
NormalizeObjectPosition ( TmxObject tmxObject, int tileWidth, int tileHeight, int worldHeight ) : void

From absolute position in pixels to side of tile = 1

PolylineTransform ( Map map, TmxObject polyline ) : IEnumerable
RotateAroundCenter ( System.Vector2 target, System.Vector2 center, float angle ) : System.Vector2
SetGameObjectProperties ( List properties, GameObject gameObject ) : void
SetTileRelations ( IAtlas atlas, Map map ) : void
TilesetNameFromGid ( List tilesets, int gid ) : int>.Tuple
TransformObjectPosition ( TmxObject tmxObject ) : void

Transforms from rotation around left lower corner to rotation around center

메소드 상세

LoadMap() 공개 정적인 메소드

Loads map from specified path, creates tiles and objects and put them into new Atlas object.
public static LoadMap ( Map map, TilesetTable tilesetTable, Action initializer ) : IAtlas
map TmxMapSerializer.Elements.Map Deserialized .tmx file
tilesetTable World.GameActors.Tiles.TilesetTable Table of numbers of game object and theirs classes
initializer Action
리턴 IAtlas