Skip to content

IPlayerTools

namespace Griff.Runtime;
public interface IPlayerTools

A system with controls that are one player’s own (a hotbar, building tools), which the host of a network game runs for each player.

public abstract void RunForPlayer(NetPlayer player, IInput input)

On the host of a network game, runs the system’s controls that are one player’s own for player with input, their keys and mouse (with the view they see, see HudViewOf): it lays out their HUD for their screen and runs their tools on what the system keeps for them, while Input stays this machine’s own. Called once a frame for each other player with a character.