Event handling
The server provides a few events that you can listen to.
HogWarpSdk.Server.World.UpdateEvent
This simple event is called every frame and passes the delta time in seconds since the previous frame.
Example usage:
HogWarpSdk.Server.PlayerSystem.PlayerJoinEvent
This simple event is called when a player joins the server, it passes the player, at this point all spawned actors are already valid and Rpcs can be called.
HogWarpSdk.Server.PlayerSystem.PlayerLeftEvent
This simple event is called when a player leaves the server, it passes the player, note that at this point it would serve no purpose to make Rpc calls to that player, they are already disconnected.
Last updated