C# Class OpenRA.Map

Afficher le fichier Open project: OpenRA/OpenRA Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ContainsAllProjectedCellsCovering ( MPos uv ) : bool
ProjectCellInner ( MPos uv ) : OpenRA.PPos[]
UpdateEdgeCells ( ) : List

Method Details

CellContaining() public méthode

public CellContaining ( OpenRA.WPos pos ) : OpenRA.CPos
pos OpenRA.WPos
Résultat OpenRA.CPos

CenterOfCell() public méthode

public CenterOfCell ( OpenRA.CPos cell ) : OpenRA.WPos
cell OpenRA.CPos
Résultat OpenRA.WPos

CenterOfSubCell() public méthode

public CenterOfSubCell ( OpenRA.CPos cell, SubCell subCell ) : OpenRA.WPos
cell OpenRA.CPos
subCell SubCell
Résultat OpenRA.WPos

ChooseClosestEdgeCell() public méthode

public ChooseClosestEdgeCell ( OpenRA.CPos cell ) : OpenRA.CPos
cell OpenRA.CPos
Résultat OpenRA.CPos

ChooseClosestEdgeCell() public méthode

public ChooseClosestEdgeCell ( MPos uv ) : MPos
uv MPos
Résultat MPos

ChooseClosestMatchingEdgeCell() public méthode

public ChooseClosestMatchingEdgeCell ( OpenRA.CPos cell, bool>.Func match ) : OpenRA.CPos
cell OpenRA.CPos
match bool>.Func
Résultat OpenRA.CPos

ChooseRandomCell() public méthode

public ChooseRandomCell ( MersenneTwister rand ) : OpenRA.CPos
rand MersenneTwister
Résultat OpenRA.CPos

ChooseRandomEdgeCell() public méthode

public ChooseRandomEdgeCell ( MersenneTwister rand ) : OpenRA.CPos
rand MersenneTwister
Résultat OpenRA.CPos

Clamp() public méthode

public Clamp ( OpenRA.CPos cell ) : OpenRA.CPos
cell OpenRA.CPos
Résultat OpenRA.CPos

Clamp() public méthode

public Clamp ( MPos uv ) : MPos
uv MPos
Résultat MPos

Clamp() public méthode

public Clamp ( OpenRA.PPos puv ) : OpenRA.PPos
puv OpenRA.PPos
Résultat OpenRA.PPos

ComputeUID() public static méthode

public static ComputeUID ( IReadOnlyPackage package ) : string
package IReadOnlyPackage
Résultat string

Contains() public méthode

public Contains ( OpenRA.CPos cell ) : bool
cell OpenRA.CPos
Résultat bool

Contains() public méthode

public Contains ( MPos uv ) : bool
uv MPos
Résultat bool

Contains() public méthode

public Contains ( OpenRA.PPos puv ) : bool
puv OpenRA.PPos
Résultat bool

DistanceAboveTerrain() public méthode

public DistanceAboveTerrain ( OpenRA.WPos pos ) : WDist
pos OpenRA.WPos
Résultat WDist

DistanceToEdge() public méthode

public DistanceToEdge ( OpenRA.WPos pos, OpenRA.WVec dir ) : WDist
pos OpenRA.WPos
dir OpenRA.WVec
Résultat WDist

Exists() public méthode

public Exists ( string filename ) : bool
filename string
Résultat bool

FacingBetween() public méthode

public FacingBetween ( OpenRA.CPos cell, OpenRA.CPos towards, int fallbackfacing ) : int
cell OpenRA.CPos
towards OpenRA.CPos
fallbackfacing int
Résultat int

FindTilesInAnnulus() public méthode

public FindTilesInAnnulus ( OpenRA.CPos center, int minRange, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
center OpenRA.CPos
minRange int
maxRange int
allowOutsideBounds bool
Résultat IEnumerable

FindTilesInCircle() public méthode

public FindTilesInCircle ( OpenRA.CPos center, int maxRange, bool allowOutsideBounds = false ) : IEnumerable
center OpenRA.CPos
maxRange int
allowOutsideBounds bool
Résultat IEnumerable

FixOpenAreas() public méthode

public FixOpenAreas ( ) : void
Résultat void

GetTerrainIndex() public méthode

public GetTerrainIndex ( OpenRA.CPos cell ) : byte
cell OpenRA.CPos
Résultat byte

GetTerrainInfo() public méthode

public GetTerrainInfo ( OpenRA.CPos cell ) : TerrainTypeInfo
cell OpenRA.CPos
Résultat TerrainTypeInfo

InitializeCellProjection() public méthode

public InitializeCellProjection ( ) : void
Résultat void

Map() public méthode

public Map ( OpenRA.ModData modData, IReadOnlyPackage package ) : System
modData OpenRA.ModData
package IReadOnlyPackage
Résultat System

Map() public méthode

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
Résultat System

Open() public méthode

public Open ( string filename ) : Stream
filename string
Résultat Stream

PostInit() public méthode

public PostInit ( ) : void
Résultat void

ProjectedCellCovering() public méthode

public ProjectedCellCovering ( OpenRA.WPos pos ) : OpenRA.PPos
pos OpenRA.WPos
Résultat OpenRA.PPos

ProjectedCellsCovering() public méthode

public ProjectedCellsCovering ( MPos uv ) : OpenRA.PPos[]
uv MPos
Résultat OpenRA.PPos[]

Resize() public méthode

public Resize ( int width, int height ) : void
width int
height int
Résultat void

Save() public méthode

public Save ( IReadWritePackage toPackage ) : void
toPackage IReadWritePackage
Résultat void

SaveBinaryData() public méthode

public SaveBinaryData ( ) : byte[]
Résultat byte[]

SavePreview() public méthode

public SavePreview ( ) : byte[]
Résultat byte[]

SetBounds() public méthode

public SetBounds ( PPos tl, PPos br ) : void
tl PPos
br PPos
Résultat void

TryGetPackageContaining() public méthode

public TryGetPackageContaining ( string path, IReadOnlyPackage &package, string &filename ) : bool
path string
package IReadOnlyPackage
filename string
Résultat bool

TryOpen() public méthode

public TryOpen ( string filename, Stream &s ) : bool
filename string
s Stream
Résultat bool

Unproject() public méthode

public Unproject ( PPos puv ) : List
puv PPos
Résultat List

UpdateProjection() public méthode

public UpdateProjection ( CPos cell ) : void
cell CPos
Résultat void

Property Details

ActorDefinitions public_oe property

public List ActorDefinitions
Résultat List

Author public_oe property

public string Author
Résultat string

Bounds public_oe property

public Rectangle,System.Drawing Bounds
Résultat System.Drawing.Rectangle

Categories public_oe property

public string[] Categories
Résultat string[]

Grid public_oe property

public MapGrid,OpenRA Grid
Résultat MapGrid

LockPreview public_oe property

public bool LockPreview
Résultat bool

MusicDefinitions public_oe property

public MiniYaml MusicDefinitions
Résultat MiniYaml

NotificationDefinitions public_oe property

public MiniYaml NotificationDefinitions
Résultat MiniYaml

PlayerDefinitions public_oe property

public List PlayerDefinitions
Résultat List

RequiresMod public_oe property

public string RequiresMod
Résultat string

RuleDefinitions public_oe property

public MiniYaml RuleDefinitions
Résultat MiniYaml

SequenceDefinitions public_oe property

public MiniYaml SequenceDefinitions
Résultat MiniYaml

TileFormat public_oe property

public byte TileFormat
Résultat byte

Tileset public_oe property

public string Tileset
Résultat string

Title public_oe property

public string Title
Résultat string

TranslationDefinitions public_oe property

public MiniYaml TranslationDefinitions
Résultat MiniYaml

Visibility public_oe property

public MapVisibility Visibility
Résultat MapVisibility

VoiceDefinitions public_oe property

public MiniYaml VoiceDefinitions
Résultat MiniYaml

VoxelSequenceDefinitions public_oe property

public MiniYaml VoxelSequenceDefinitions
Résultat MiniYaml

WeaponDefinitions public_oe property

public MiniYaml WeaponDefinitions
Résultat MiniYaml