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

Inheritance: IRender, ITick, INotifyOwnerChanged, INotifyEffectiveOwnerChanged
显示文件 Open project: cjshmyr/OpenRA Class Usage Examples

Public Methods

Method Description
Add ( AnimationWithOffset anim, string palette = null, bool isPlayerPalette = false ) : void
AutoSelectionSize ( Actor self ) : int2
GetImage ( Actor self ) : string
MakeFacingFunc ( Actor self ) : Func
NormalizeSequence ( OpenRA.Graphics.Animation anim, DamageState state, string sequence ) : string
OnEffectiveOwnerChanged ( Actor self, Player oldEffectiveOwner, Player newEffectiveOwner ) : void
OnOwnerChanged ( Actor self, Player oldOwner, Player newOwner ) : void
Remove ( AnimationWithOffset anim ) : void
Render ( Actor self, WorldRenderer wr ) : IEnumerable
RenderSprites ( ActorInitializer init, RenderSpritesInfo info ) : System
Tick ( Actor self ) : void
UpdatePalette ( ) : void

Method Details

Add() public method

public Add ( AnimationWithOffset anim, string palette = null, bool isPlayerPalette = false ) : void
anim OpenRA.Graphics.AnimationWithOffset
palette string
isPlayerPalette bool
return void

AutoSelectionSize() public method

public AutoSelectionSize ( Actor self ) : int2
self Actor
return int2

GetImage() public method

public GetImage ( Actor self ) : string
self Actor
return string

MakeFacingFunc() public static method

public static MakeFacingFunc ( Actor self ) : Func
self Actor
return Func

NormalizeSequence() public static method

public static NormalizeSequence ( OpenRA.Graphics.Animation anim, DamageState state, string sequence ) : string
anim OpenRA.Graphics.Animation
state DamageState
sequence string
return string

OnEffectiveOwnerChanged() public method

public OnEffectiveOwnerChanged ( Actor self, Player oldEffectiveOwner, Player newEffectiveOwner ) : void
self Actor
oldEffectiveOwner Player
newEffectiveOwner Player
return void

OnOwnerChanged() public method

public OnOwnerChanged ( Actor self, Player oldOwner, Player newOwner ) : void
self Actor
oldOwner Player
newOwner Player
return void

Remove() public method

public Remove ( AnimationWithOffset anim ) : void
anim OpenRA.Graphics.AnimationWithOffset
return void

Render() public method

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

RenderSprites() public method

public RenderSprites ( ActorInitializer init, RenderSpritesInfo info ) : System
init ActorInitializer
info RenderSpritesInfo
return System

Tick() public method

public Tick ( Actor self ) : void
self Actor
return void

UpdatePalette() public method

public UpdatePalette ( ) : void
return void