//-----------------------------------------------------------------------------
	// Purpose: Callback from Steam when logon is fully completed and VAC secure policy is set
	//-----------------------------------------------------------------------------
	void OnPolicyResponse(GSPolicyResponse_t pPolicyResponse) {
#if USE_GS_AUTH_API
		// Check if we were able to go VAC secure or not
		if (SteamGameServer.BSecure()) {
			Debug.Log("SpaceWarServer is VAC Secure!");
		}
		else {
			Debug.Log("SpaceWarServer is not VAC Secure!");
		}
		
		Debug.Log("Game server SteamID:" + SteamGameServer.GetSteamID().ToString());
#endif
	}
Example #2
0
 /// <summary>
 /// From Spacewar:
 /// Callback from Steam when logon is fully completed and VAC secure policy is set
 /// </summary>
 /// <param name="callback"></param>
 void OnPolicyResponse(GSPolicyResponse_t callback)
 {
     Debug.LogFormat("Steam logged in successfully! Vac Secure: {0}", VACSecure);
 }