OpenBve.Game.RemoveMarker C# (CSharp) Method

RemoveMarker() static private method

static private RemoveMarker ( Textures Texture ) : void
Texture Textures
return void
		internal static void RemoveMarker(Textures.Texture Texture) {
			int n = MarkerTextures.Length;
			for (int i = 0; i < n; i++) {
				if (MarkerTextures[i] == Texture) {
					for (int j = i; j < n - 1; j++) {
						MarkerTextures[j] = MarkerTextures[j + 1];
					}
					n--;
					Array.Resize<Textures.Texture>(ref MarkerTextures, n);
					break;
				}
			}
		}

Same methods

Game::RemoveMarker ( int TextureIndex ) : void

Usage Example

示例#1
0
 internal override void Update()
 {
     if (QueueForRemoval == true)
     {
         Game.RemoveMarker(this.Texture);
     }
 }
All Usage Examples Of OpenBve.Game::RemoveMarker