internal override void AddMessage() { QueueForRemoval = false; ImageMessages.Add(this); if (TriggerOnce && Triggered) { return; } Triggered = true; if (Game.SecondsSinceMidnight <= MessageEarlyTime) { //We are early Game.AddMarker(MessageEarlyTexture); currentTexture = 0; } else if (Game.SecondsSinceMidnight >= MessageLateTime) { //Late Game.AddMarker(MessageLateTexture); currentTexture = 2; } else { //On time Game.AddMarker(MessageOnTimeTexture); currentTexture = 1; } }
override internal void Trigger(int Direction, EventTriggerType TriggerType, TrainManager.Train Train, int CarIndex) { if (TriggerType == EventTriggerType.Camera) { if (Direction < 0) { Game.AddMarker(this.TextureIndex); } else if (Direction > 0) { Game.RemoveMarker(this.TextureIndex); } } }
internal override void AddMessage() { QueueForRemoval = false; ImageMessages.Add(this); Game.AddMarker(this.Texture); }