Esempio n. 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>();
 }
Esempio n. 2
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>();
 }
Esempio n. 3
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>();
        }
Esempio n. 4
0
        public Contrail(Actor self, ContrailInfo info)
        {
            this.info = info;

            var color = info.UsePlayerColor ? ContrailRenderable.ChooseColor(self) : info.Color;

            trail = new ContrailRenderable(self.World, color, info.TrailLength, 0, 0);

            body = self.Trait <IBodyOrientation>();
        }
Esempio n. 5
0
        public Contrail(Actor self, ContrailInfo info)
        {
            Info = info;

            ContrailTurret = new Turret(Info.ContrailOffset);

            TrailLength = Info.TrailLength;

            if (Info.UsePlayerColor)
            {
                var ownerColor = Color.FromArgb(255, self.Owner.Color);
                TrailColor = PlayerColorRemap.ColorLerp(0.5f, ownerColor, Color.White);
            }
        }
Esempio n. 6
0
 public Contrail(Actor self, ContrailInfo info)
 {
     Info = info;
     ContrailTurret = new Turret(Info.ContrailOffset);
     history = new ContrailHistory(Info.TrailLength, Info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : Info.Color);
 }