Server.Diagnostics.PacketReceiveProfile.Acquire C# (CSharp) Méthode

Acquire() public static méthode

public static Acquire ( int packetId ) : PacketReceiveProfile
packetId int
Résultat PacketReceiveProfile
		public static PacketReceiveProfile Acquire( int packetId ) {
			if ( !Core.Profiling ) {
				return null;
			}

			PacketReceiveProfile prof;

			if ( !_profiles.TryGetValue( packetId, out prof ) ) {
				_profiles.Add( packetId, prof = new PacketReceiveProfile( packetId ) );
			}

			return prof;
		}