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>(); }
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>(); }
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>(); }
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>(); }
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); } }
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); }