Ejemplo n.º 1
0
 public static void AddComponents(Entity subject)
 {
     Stats.AddTo(subject, Registry.Global.Stats._map);
     Transform.AddTo(subject, Layers.TRAP, 0);
     FactionComponent.AddTo(subject, Faction.Enemy);
     Acting.AddTo(subject, ctx => Bouncing.UAction.Compile(), Algos.SimpleAlgo, Order.Trap);
     Damageable.AddTo(subject, new Health(1));
     Ticking.AddTo(subject);
     Bouncing.AddTo(subject);
 }
Ejemplo n.º 2
0
 public static void Retouch(EntityFactory factory)
 {
     Bouncing.AddInitTo(factory);
 }