Exemplo n.º 1
0
 public Sandworm(Actor self, SandwormInfo info)
     : base(self, info)
 {
     WormInfo    = info;
     mobile      = self.Trait <Mobile>();
     attackTrait = self.Trait <AttackBase>();
     manager     = self.World.WorldActor.Trait <WormManager>();
 }
Exemplo n.º 2
0
 public Sandworm(Actor self, SandwormInfo info)
     : base(self, info)
 {
     Info        = info;
     mobile      = Exts.Lazy(self.Trait <Mobile>);
     renderUnit  = Exts.Lazy(self.Trait <RenderUnit>);
     attackTrait = Exts.Lazy(self.Trait <AttackBase>);
     manager     = self.World.WorldActor.Trait <WormManager>();
 }
Exemplo n.º 3
0
 public Sandworm(Actor self, SandwormInfo info)
     : base(self, info)
 {
     Info           = info;
     mobile         = Exts.Lazy(self.Trait <Mobile>);
     withSpriteBody = Exts.Lazy(self.Trait <WithSpriteBody>);
     attackTrait    = Exts.Lazy(self.Trait <AttackBase>);
     manager        = self.World.WorldActor.Trait <WormManager>();
 }