OpenBve.Game.AddMarker C# (CSharp) Method

AddMarker() static private method

static private AddMarker ( Textures Texture ) : void
Texture Textures
return void
		internal static void AddMarker(Textures.Texture Texture) {
			int n = MarkerTextures.Length;
			Array.Resize<Textures.Texture>(ref MarkerTextures, n + 1);
			MarkerTextures[n] = Texture;
		}
		internal static void RemoveMarker(Textures.Texture Texture) {

Same methods

Game::AddMarker ( int TextureIndex ) : void

Usage 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;
     }
 }
All Usage Examples Of OpenBve.Game::AddMarker