Inheritance: IRender, ITick, INotifyOwnerChanged, INotifyEffectiveOwnerChanged
Example #1
0
 public string NormalizeSequence(Actor self, string sequence)
 {
     return(RenderSprites.NormalizeSequence(DefaultAnimation, self.GetDamageState(), sequence));
 }
Example #2
0
 public Bib(Actor self, BibInfo info)
 {
     this.info = info;
     rs        = self.Trait <RenderSprites>();
     bi        = self.Info.TraitInfo <BuildingInfo>();
 }
 public WithFacingSpriteBody(ActorInitializer init, WithFacingSpriteBodyInfo info)
     : base(init, info, RenderSprites.MakeFacingFunc(init.Self))
 {
 }
Example #4
0
 public void DamageStateChanged(Actor self, AttackInfo e)
 {
     overlay.ReplaceAnim(RenderSprites.NormalizeSequence(overlay, e.DamageState, overlay.CurrentSequence.Name));
 }
Example #5
0
 public WithDeathAnimation(Actor self, WithDeathAnimationInfo info)
 {
     Info = info;
     rs   = self.Trait <RenderSprites>();
 }
Example #6
0
 public SmokeTrailWhenDamaged(Actor self, SmokeTrailWhenDamagedInfo info)
 {
     this.info = info;
     body      = self.Trait <BodyOrientation>();
     getFacing = RenderSprites.MakeFacingFunc(self);
 }
Example #7
0
 public void Charging(Actor self, Target target)
 {
     charging = true;
     overlay.PlayThen(RenderSprites.NormalizeSequence(overlay, self.GetDamageState(), info.Sequence), () => charging = false);
 }