Facepunch.Steamworks Wiki

Steamworks.Dispatch

Responsible for all callback/callresult handling

This manually pumps Steam's message queue and dispatches those events to any waiting callbacks/callresults.

Fields

static Action<CallbackType, string, bool> OnDebugCallback
If set then we'll call this function every time a callback is generated. This is SLOW!! - it's for debugging - don't keep it on all the time. If you want to access a specific callback then please create an issue on github and I'll add it! Params are : [Callback Type] [Callback Contents] [server]
static Action<System.Exception> OnException
Called if an exception happens during a callback/callresult. This is needed because the exception isn't always accessible when running async.. and can fail silently. With this hooked you won't be stuck wondering what happened.