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

Inheritance: IWorldLoaded, ITickRender, IRender, IRadarSignature, ICreatePlayers
Show file Open project: OpenRA/OpenRA Class Usage Examples

Public Methods

Method 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

Method 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 method

public Add ( ActorReference reference ) : EditorActorPreview
reference ActorReference
return EditorActorPreview

CreatePlayers() public method

public CreatePlayers ( World w ) : void
w World
return void

EditorActorLayer() public method

public EditorActorLayer ( Actor self, EditorActorLayerInfo info ) : System
self Actor
info EditorActorLayerInfo
return System

FreeSubCellAt() public method

public FreeSubCellAt ( CPos cell ) : SubCell
cell CPos
return SubCell

PreviewsAt() public method

public PreviewsAt ( CPos cell ) : IEnumerable
cell CPos
return IEnumerable

PreviewsAt() public method

public PreviewsAt ( int2 worldPx ) : IEnumerable
worldPx int2
return IEnumerable

PreviewsInBox() public method

public PreviewsInBox ( Rectangle r ) : IEnumerable
r System.Drawing.Rectangle
return IEnumerable

PreviewsInBox() public method

public PreviewsInBox ( int2 a, int2 b ) : IEnumerable
a int2
b int2
return IEnumerable

RadarSignatureCells() public method

public RadarSignatureCells ( Actor self ) : Color>>.IEnumerable
self Actor
return Color>>.IEnumerable

Remove() public method

public Remove ( EditorActorPreview preview ) : void
preview EditorActorPreview
return void

Render() public method

public Render ( Actor self, WorldRenderer wr ) : IEnumerable
self Actor
wr OpenRA.Graphics.WorldRenderer
return IEnumerable

Save() public method

public Save ( ) : List
return List

TickRender() public method

public TickRender ( WorldRenderer wr, Actor self ) : void
wr OpenRA.Graphics.WorldRenderer
self Actor
return void

WorldLoaded() public method

public WorldLoaded ( World world, WorldRenderer wr ) : void
world World
wr OpenRA.Graphics.WorldRenderer
return void