AddMarker() static private method

static private AddMarker ( Textures Texture ) : void
Texture Textures
return void
Example #1
0
 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;
     }
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
 internal override void AddMessage()
 {
     QueueForRemoval = false;
     ImageMessages.Add(this);
     Game.AddMarker(this.Texture);
 }