C# 클래스 OpenRA.Map

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

공개 프로퍼티들

프로퍼티 타입 설명
ActorDefinitions List
Author string
Bounds System.Drawing.Rectangle
Categories string[]
Grid MapGrid
LockPreview bool
MusicDefinitions MiniYaml
NotificationDefinitions MiniYaml
PlayerDefinitions List
RequiresMod string
RuleDefinitions MiniYaml
SequenceDefinitions MiniYaml
TileFormat byte
Tileset string
Title string
TranslationDefinitions MiniYaml
Visibility MapVisibility
VoiceDefinitions MiniYaml
VoxelSequenceDefinitions MiniYaml
WeaponDefinitions MiniYaml

공개 메소드들

메소드 설명
CellContaining ( OpenRA.WPos pos ) : OpenRA.CPos
CenterOfCell ( OpenRA.CPos cell ) : OpenRA.WPos
CenterOfSubCell ( OpenRA.CPos cell, SubCell subCell ) : OpenRA.WPos
ChooseClosestEdgeCell ( OpenRA.CPos cell ) : OpenRA.CPos
ChooseClosestEdgeCell ( MPos uv ) : MPos
ChooseClosestMatchingEdgeCell ( OpenRA.CPos cell, bool>.Func match ) : OpenRA.CPos
ChooseRandomCell ( MersenneTwister rand ) : OpenRA.CPos
ChooseRandomEdgeCell ( MersenneTwister rand ) : OpenRA.CPos
Clamp ( OpenRA.CPos cell ) : OpenRA.CPos
Clamp ( MPos uv ) : MPos
Clamp ( OpenRA.PPos puv ) : OpenRA.PPos
ComputeUID ( IReadOnlyPackage package ) : string
Contains ( OpenRA.CPos cell ) : bool
Contains ( MPos uv ) : bool
Contains ( OpenRA.PPos puv ) : bool
DistanceAboveTerrain ( OpenRA.WPos pos ) : WDist
DistanceToEdge ( OpenRA.WPos pos, OpenRA.WVec dir ) : WDist
Exists ( string filename ) : bool
FacingBetween ( OpenRA.CPos cell, OpenRA.CPos towards, int fallbackfacing ) : int
FindTilesInAnnulus ( OpenRA.CPos center, int minRange, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
FindTilesInCircle ( OpenRA.CPos center, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
FixOpenAreas ( ) : void
GetTerrainIndex ( OpenRA.CPos cell ) : byte
GetTerrainInfo ( OpenRA.CPos cell ) : TerrainTypeInfo
InitializeCellProjection ( ) : void
Map ( OpenRA.ModData modData, IReadOnlyPackage package ) : System
Map ( OpenRA.ModData modData, TileSet tileset, int width, int height ) : System

Initializes a new map created by the editor or importer. The map will not receive a valid UID until after it has been saved and reloaded.

Open ( string filename ) : Stream
PostInit ( ) : void
ProjectedCellCovering ( OpenRA.WPos pos ) : OpenRA.PPos
ProjectedCellsCovering ( MPos uv ) : OpenRA.PPos[]
Resize ( int width, int height ) : void
Save ( IReadWritePackage toPackage ) : void
SaveBinaryData ( ) : byte[]
SavePreview ( ) : byte[]
SetBounds ( PPos tl, PPos br ) : void
TryGetPackageContaining ( string path, IReadOnlyPackage &package, string &filename ) : bool
TryOpen ( string filename, Stream &s ) : bool
Unproject ( PPos puv ) : List
UpdateProjection ( CPos cell ) : void

비공개 메소드들

메소드 설명
ContainsAllProjectedCellsCovering ( MPos uv ) : bool
ProjectCellInner ( MPos uv ) : OpenRA.PPos[]
UpdateEdgeCells ( ) : List

메소드 상세

CellContaining() 공개 메소드

public CellContaining ( OpenRA.WPos pos ) : OpenRA.CPos
pos OpenRA.WPos
리턴 OpenRA.CPos

CenterOfCell() 공개 메소드

public CenterOfCell ( OpenRA.CPos cell ) : OpenRA.WPos
cell OpenRA.CPos
리턴 OpenRA.WPos

CenterOfSubCell() 공개 메소드

public CenterOfSubCell ( OpenRA.CPos cell, SubCell subCell ) : OpenRA.WPos
cell OpenRA.CPos
subCell SubCell
리턴 OpenRA.WPos

ChooseClosestEdgeCell() 공개 메소드

public ChooseClosestEdgeCell ( OpenRA.CPos cell ) : OpenRA.CPos
cell OpenRA.CPos
리턴 OpenRA.CPos

ChooseClosestEdgeCell() 공개 메소드

public ChooseClosestEdgeCell ( MPos uv ) : MPos
uv MPos
리턴 MPos

ChooseClosestMatchingEdgeCell() 공개 메소드

public ChooseClosestMatchingEdgeCell ( OpenRA.CPos cell, bool>.Func match ) : OpenRA.CPos
cell OpenRA.CPos
match bool>.Func
리턴 OpenRA.CPos

ChooseRandomCell() 공개 메소드

public ChooseRandomCell ( MersenneTwister rand ) : OpenRA.CPos
rand MersenneTwister
리턴 OpenRA.CPos

ChooseRandomEdgeCell() 공개 메소드

public ChooseRandomEdgeCell ( MersenneTwister rand ) : OpenRA.CPos
rand MersenneTwister
리턴 OpenRA.CPos

Clamp() 공개 메소드

public Clamp ( OpenRA.CPos cell ) : OpenRA.CPos
cell OpenRA.CPos
리턴 OpenRA.CPos

Clamp() 공개 메소드

public Clamp ( MPos uv ) : MPos
uv MPos
리턴 MPos

Clamp() 공개 메소드

public Clamp ( OpenRA.PPos puv ) : OpenRA.PPos
puv OpenRA.PPos
리턴 OpenRA.PPos

ComputeUID() 공개 정적인 메소드

public static ComputeUID ( IReadOnlyPackage package ) : string
package IReadOnlyPackage
리턴 string

Contains() 공개 메소드

public Contains ( OpenRA.CPos cell ) : bool
cell OpenRA.CPos
리턴 bool

Contains() 공개 메소드

public Contains ( MPos uv ) : bool
uv MPos
리턴 bool

Contains() 공개 메소드

public Contains ( OpenRA.PPos puv ) : bool
puv OpenRA.PPos
리턴 bool

DistanceAboveTerrain() 공개 메소드

public DistanceAboveTerrain ( OpenRA.WPos pos ) : WDist
pos OpenRA.WPos
리턴 WDist

DistanceToEdge() 공개 메소드

public DistanceToEdge ( OpenRA.WPos pos, OpenRA.WVec dir ) : WDist
pos OpenRA.WPos
dir OpenRA.WVec
리턴 WDist

Exists() 공개 메소드

public Exists ( string filename ) : bool
filename string
리턴 bool

FacingBetween() 공개 메소드

public FacingBetween ( OpenRA.CPos cell, OpenRA.CPos towards, int fallbackfacing ) : int
cell OpenRA.CPos
towards OpenRA.CPos
fallbackfacing int
리턴 int

FindTilesInAnnulus() 공개 메소드

public FindTilesInAnnulus ( OpenRA.CPos center, int minRange, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
center OpenRA.CPos
minRange int
maxRange int
allowOutsideBounds bool
리턴 IEnumerable

FindTilesInCircle() 공개 메소드

public FindTilesInCircle ( OpenRA.CPos center, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
center OpenRA.CPos
maxRange int
allowOutsideBounds bool
리턴 IEnumerable

FixOpenAreas() 공개 메소드

public FixOpenAreas ( ) : void
리턴 void

GetTerrainIndex() 공개 메소드

public GetTerrainIndex ( OpenRA.CPos cell ) : byte
cell OpenRA.CPos
리턴 byte

GetTerrainInfo() 공개 메소드

public GetTerrainInfo ( OpenRA.CPos cell ) : TerrainTypeInfo
cell OpenRA.CPos
리턴 TerrainTypeInfo

InitializeCellProjection() 공개 메소드

public InitializeCellProjection ( ) : void
리턴 void

Map() 공개 메소드

public Map ( OpenRA.ModData modData, IReadOnlyPackage package ) : System
modData OpenRA.ModData
package IReadOnlyPackage
리턴 System

Map() 공개 메소드

Initializes a new map created by the editor or importer. The map will not receive a valid UID until after it has been saved and reloaded.
public Map ( OpenRA.ModData modData, TileSet tileset, int width, int height ) : System
modData OpenRA.ModData
tileset TileSet
width int
height int
리턴 System

Open() 공개 메소드

public Open ( string filename ) : Stream
filename string
리턴 Stream

PostInit() 공개 메소드

public PostInit ( ) : void
리턴 void

ProjectedCellCovering() 공개 메소드

public ProjectedCellCovering ( OpenRA.WPos pos ) : OpenRA.PPos
pos OpenRA.WPos
리턴 OpenRA.PPos

ProjectedCellsCovering() 공개 메소드

public ProjectedCellsCovering ( MPos uv ) : OpenRA.PPos[]
uv MPos
리턴 OpenRA.PPos[]

Resize() 공개 메소드

public Resize ( int width, int height ) : void
width int
height int
리턴 void

Save() 공개 메소드

public Save ( IReadWritePackage toPackage ) : void
toPackage IReadWritePackage
리턴 void

SaveBinaryData() 공개 메소드

public SaveBinaryData ( ) : byte[]
리턴 byte[]

SavePreview() 공개 메소드

public SavePreview ( ) : byte[]
리턴 byte[]

SetBounds() 공개 메소드

public SetBounds ( PPos tl, PPos br ) : void
tl PPos
br PPos
리턴 void

TryGetPackageContaining() 공개 메소드

public TryGetPackageContaining ( string path, IReadOnlyPackage &package, string &filename ) : bool
path string
package IReadOnlyPackage
filename string
리턴 bool

TryOpen() 공개 메소드

public TryOpen ( string filename, Stream &s ) : bool
filename string
s Stream
리턴 bool

Unproject() 공개 메소드

public Unproject ( PPos puv ) : List
puv PPos
리턴 List

UpdateProjection() 공개 메소드

public UpdateProjection ( CPos cell ) : void
cell CPos
리턴 void

프로퍼티 상세

ActorDefinitions 공개적으로 프로퍼티

public List ActorDefinitions
리턴 List

Author 공개적으로 프로퍼티

public string Author
리턴 string

Bounds 공개적으로 프로퍼티

public Rectangle,System.Drawing Bounds
리턴 System.Drawing.Rectangle

Categories 공개적으로 프로퍼티

public string[] Categories
리턴 string[]

Grid 공개적으로 프로퍼티

public MapGrid,OpenRA Grid
리턴 MapGrid

LockPreview 공개적으로 프로퍼티

public bool LockPreview
리턴 bool

MusicDefinitions 공개적으로 프로퍼티

public MiniYaml MusicDefinitions
리턴 MiniYaml

NotificationDefinitions 공개적으로 프로퍼티

public MiniYaml NotificationDefinitions
리턴 MiniYaml

PlayerDefinitions 공개적으로 프로퍼티

public List PlayerDefinitions
리턴 List

RequiresMod 공개적으로 프로퍼티

public string RequiresMod
리턴 string

RuleDefinitions 공개적으로 프로퍼티

public MiniYaml RuleDefinitions
리턴 MiniYaml

SequenceDefinitions 공개적으로 프로퍼티

public MiniYaml SequenceDefinitions
리턴 MiniYaml

TileFormat 공개적으로 프로퍼티

public byte TileFormat
리턴 byte

Tileset 공개적으로 프로퍼티

public string Tileset
리턴 string

Title 공개적으로 프로퍼티

public string Title
리턴 string

TranslationDefinitions 공개적으로 프로퍼티

public MiniYaml TranslationDefinitions
리턴 MiniYaml

Visibility 공개적으로 프로퍼티

public MapVisibility Visibility
리턴 MapVisibility

VoiceDefinitions 공개적으로 프로퍼티

public MiniYaml VoiceDefinitions
리턴 MiniYaml

VoxelSequenceDefinitions 공개적으로 프로퍼티

public MiniYaml VoxelSequenceDefinitions
리턴 MiniYaml

WeaponDefinitions 공개적으로 프로퍼티

public MiniYaml WeaponDefinitions
리턴 MiniYaml