C# Class OpenRA.Mods.Common.Traits.EditorActorLayer

Inheritance: IWorldLoaded, ITickRender, IRender, IRadarSignature, ICreatePlayers
Afficher le fichier Open project: OpenRA/OpenRA Class Usage Examples

Méthodes publiques

Méthode Description
Add ( ActorReference reference ) : EditorActorPreview
CreatePlayers ( World w ) : void
EditorActorLayer ( Actor self, EditorActorLayerInfo info ) : System
FreeSubCellAt ( CPos cell ) : SubCell
PreviewsAt ( CPos cell ) : IEnumerable
PreviewsAt ( int2 worldPx ) : IEnumerable
PreviewsInBox ( Rectangle r ) : IEnumerable
PreviewsInBox ( int2 a, int2 b ) : IEnumerable
RadarSignatureCells ( Actor self ) : Color>>.IEnumerable
Remove ( EditorActorPreview preview ) : void
Render ( Actor self, WorldRenderer wr ) : IEnumerable
Save ( ) : List
TickRender ( WorldRenderer wr, Actor self ) : void
WorldLoaded ( World world, WorldRenderer wr ) : void

Private Methods

Méthode Description
Add ( string id, ActorReference reference, bool initialSetup = false ) : EditorActorPreview
NeighbouringPreviews ( SubCell>.IReadOnlyDictionary footprint ) : string[]>.Dictionary
NextActorName ( ) : string
SyncMultiplayerCount ( ) : void
UpdateNeighbours ( SubCell>.IReadOnlyDictionary footprint ) : void

Method Details

Add() public méthode

public Add ( ActorReference reference ) : EditorActorPreview
reference ActorReference
Résultat EditorActorPreview

CreatePlayers() public méthode

public CreatePlayers ( World w ) : void
w World
Résultat void

EditorActorLayer() public méthode

public EditorActorLayer ( Actor self, EditorActorLayerInfo info ) : System
self Actor
info EditorActorLayerInfo
Résultat System

FreeSubCellAt() public méthode

public FreeSubCellAt ( CPos cell ) : SubCell
cell CPos
Résultat SubCell

PreviewsAt() public méthode

public PreviewsAt ( CPos cell ) : IEnumerable
cell CPos
Résultat IEnumerable

PreviewsAt() public méthode

public PreviewsAt ( int2 worldPx ) : IEnumerable
worldPx int2
Résultat IEnumerable

PreviewsInBox() public méthode

public PreviewsInBox ( Rectangle r ) : IEnumerable
r System.Drawing.Rectangle
Résultat IEnumerable

PreviewsInBox() public méthode

public PreviewsInBox ( int2 a, int2 b ) : IEnumerable
a int2
b int2
Résultat IEnumerable

RadarSignatureCells() public méthode

public RadarSignatureCells ( Actor self ) : Color>>.IEnumerable
self Actor
Résultat Color>>.IEnumerable

Remove() public méthode

public Remove ( EditorActorPreview preview ) : void
preview EditorActorPreview
Résultat void

Render() public méthode

public Render ( Actor self, WorldRenderer wr ) : IEnumerable
self Actor
wr OpenRA.Graphics.WorldRenderer
Résultat IEnumerable

Save() public méthode

public Save ( ) : List
Résultat List

TickRender() public méthode

public TickRender ( WorldRenderer wr, Actor self ) : void
wr OpenRA.Graphics.WorldRenderer
self Actor
Résultat void

WorldLoaded() public méthode

public WorldLoaded ( World world, WorldRenderer wr ) : void
world World
wr OpenRA.Graphics.WorldRenderer
Résultat void