Skip to content

OnServerInformationUpdated ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnServerInformationUpdated(  )
{
    Puts( "OnServerInformationUpdated works!" );
}

Location ​

  • ServerMgr::UpdateServerInformation()
csharp
//---
		SetSteamKey("fps", Performance.report.frameRate.ToString());
		SetSteamKey("fps_avg", Mathf.Min(Mathf.RoundToInt(Performance.report.frameRateAverage), 512).ToString());
		SetSteamKey("ent_cnt", ((BaseNetworkable.serverEntities.Count + 500) / 1000 * 1000).ToString());
		SetSteamKey("build", BuildInfo.Current.Scm.ChangeId);
	}
	Interface.CallHook("OnServerInformationUpdated");
	CrashSessionMarker.RefreshFromServerTags();
}

Released under the MIT License.