mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-02-10 08:14:49 -05:00
Add some clarifications
This commit is contained in:
parent
fcc2cdbf38
commit
4335a5e897
3 changed files with 25 additions and 5 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using Robust.Client;
|
||||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
|
|
@ -30,15 +31,30 @@ namespace Content.Client
|
|||
IoCManager.BuildGraph();
|
||||
|
||||
// DEVNOTE: This is generally where you'll be setting up the IoCManager further.
|
||||
|
||||
IoCManager.InjectDependencies(this);
|
||||
}
|
||||
|
||||
public override void PostInit()
|
||||
{
|
||||
base.PostInit();
|
||||
|
||||
// DEVNOTE: Further setup, this is the spot you should start trying to connect to the server from.
|
||||
// DEVNOTE: Further setup...
|
||||
var client = IoCManager.Resolve<IBaseClient>();
|
||||
|
||||
// DEVNOTE: You might want a main menu to connect to a server, or start a singleplayer game.
|
||||
// Be sure to check out StateManager for this! Below you'll find examples to start a game.
|
||||
|
||||
// If you want to connect to a server...
|
||||
// client.ConnectToServer("ip-goes-here", 1212);
|
||||
|
||||
// Optionally, singleplayer also works!
|
||||
// client.StartSinglePlayer();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
|
||||
// DEVNOTE: You might want to do a proper shutdown here.
|
||||
}
|
||||
|
||||
public override void Update(ModUpdateLevel level, FrameEventArgs frameEventArgs)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ namespace Content.Shared
|
|||
{
|
||||
public class EntryPoint : GameShared
|
||||
{
|
||||
// See line 25. Controls the default game culture and language.
|
||||
// IoC services shared between the client and the server go here...
|
||||
|
||||
// See line 23. Controls the default game culture and language.
|
||||
// Robust calls this culture, but you might find it more fitting to call it the game
|
||||
// language. Robust doesn't support changing this mid-game. Load your config file early
|
||||
// if you want that.
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
### Robust Toolbox Template Project!
|
||||
This is a template project for RobustToolbox, to help bootstrap the whole thing. Good luck.
|
||||
This is a multiplayer (with optional singleplayer!) template project for RobustToolbox, to help bootstrap the whole thing. Good luck.
|
||||
|
||||
Also check out our [singleplayer-only template](https://github.com/space-wizards/RobustToolboxTemplate/tree/singleplayer)
|
||||
Loading…
Add table
Add a link
Reference in a new issue