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

Inheritance: IRender, ITick, INotifyOwnerChanged, INotifyEffectiveOwnerChanged
Afficher le fichier Open project: cjshmyr/OpenRA Class Usage Examples

Méthodes publiques

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

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

AutoSelectionSize() public méthode

public AutoSelectionSize ( Actor self ) : int2
self Actor
Résultat int2

GetImage() public méthode

public GetImage ( Actor self ) : string
self Actor
Résultat string

MakeFacingFunc() public static méthode

public static MakeFacingFunc ( Actor self ) : Func
self Actor
Résultat Func

NormalizeSequence() public static méthode

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

OnEffectiveOwnerChanged() public méthode

public OnEffectiveOwnerChanged ( Actor self, Player oldEffectiveOwner, Player newEffectiveOwner ) : void
self Actor
oldEffectiveOwner Player
newEffectiveOwner Player
Résultat void

OnOwnerChanged() public méthode

public OnOwnerChanged ( Actor self, Player oldOwner, Player newOwner ) : void
self Actor
oldOwner Player
newOwner Player
Résultat void

Remove() public méthode

public Remove ( AnimationWithOffset anim ) : void
anim OpenRA.Graphics.AnimationWithOffset
Résultat void

Render() public méthode

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

RenderSprites() public méthode

public RenderSprites ( ActorInitializer init, RenderSpritesInfo info ) : System
init ActorInitializer
info RenderSpritesInfo
Résultat System

Tick() public méthode

public Tick ( Actor self ) : void
self Actor
Résultat void

UpdatePalette() public méthode

public UpdatePalette ( ) : void
Résultat void