-
Notifications
You must be signed in to change notification settings - Fork 29
Implementation
Timm Luyten edited this page Mar 30, 2023
·
16 revisions
Using the base into your own gamemode can be done by:
- Implementing the PlayerBase Interface into your player class
partial class MyPlayer : ISWBPlayer
- If you want the demo HUD (scoreboard, inventory, killfeed) you'll need to initialize it in your game constructor
using SWB_HUD;
public partial class ExampleGame : Sandbox.Game
{
public HUD UI;
public ExampleGame()
{
if (IsServer)
{
UI = new HUD();
}
}
}