Steamworks.InteropHelp.TestIfAvailableGameServer C# (CSharp) 메소드

TestIfAvailableGameServer() 공개 정적인 메소드

public static TestIfAvailableGameServer ( ) : void
리턴 void
		public static void TestIfAvailableGameServer() {
			TestIfPlatformSupported();
			if (NativeMethods.SteamGameServerClient() == System.IntPtr.Zero) {
				throw new System.InvalidOperationException("Steamworks is not initialized.");
			}
		}

Usage Example

 /// <summary>
 /// <para> Returns previously entered text &amp; length</para>
 /// </summary>
 public static uint GetEnteredGamepadTextLength()
 {
     InteropHelp.TestIfAvailableGameServer();
     return(NativeMethods.ISteamUtils_GetEnteredGamepadTextLength(CSteamGameServerAPIContext.GetSteamUtils()));
 }
All Usage Examples Of Steamworks.InteropHelp::TestIfAvailableGameServer