Пример #1
0
 public Contrail(Actor self, ContrailInfo info)
 {
     contrailTurret = new Turret(info.ContrailOffset);
     history        = new ContrailHistory(info.TrailLength,
                                          info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : info.Color);
     facing = self.Trait <IFacing>();
     move   = self.Trait <IMove>();
 }
Пример #2
0
        public Contrail(Actor self, ContrailInfo info)
        {
            this.info = info;
            history   = new ContrailHistory(info.TrailLength,
                                            info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : info.Color);

            coords = self.Trait <ILocalCoordinatesModel>();
        }