Callbacks
Callbacks are really important in an API, as they provide flexibility and customization to an extension.
Callbacks are really important in an API, as they provide flexibility and customization to an extension.
OnChatSend (Called when a chat is sent) Argument: The message sent by the user (Only text messages are provided in the argument, this does not mean that it is not called when sending a file.)
OnChatReceive (Called when a chat is received) Argument: The message received serialized
OnServerChatReceive (This is unused and reserved for something else in the future)
OnCallSend (Called when the user joins a call)
OnCallReceive (Called when there is a call started)
OnDraw (Called every frame)
OnConnect (Called when connecting to a server) Argument: The address the user is connecting to.
OnDisconnect (Called when disconnecting from a server)
Please note that function arguments are "optional" that means if one does not wish to get them they can format their function accordingly.