示例#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)
 {
     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>();
 }
示例#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>();
        }
示例#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>();
        }
示例#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);
            }
        }
示例#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);
 }