예제 #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);
 }