Server.DoorGenerator.IsFrame C# (CSharp) Méthode

IsFrame() public static méthode

public static IsFrame ( int id, int list ) : bool
id int
list int
Résultat bool
		public static bool IsFrame( int id, int[] list )
		{
			if ( id > list[list.Length - 1] )
				return false;

			for ( int i = 0; i < list.Length; ++i )
			{
				int delta = id - list[i];

				if ( delta < 0 )
					return false;
				else if ( delta == 0 )
					return true;
			}

			return false;
		}