Interface IGameContext
  Represents the core of Socially Distant.
Assembly: SociallyDistant.Framework.dll
  Syntax
  
    public interface IGameContext
   
  Properties
  
  ContentManager
  Gets an instance of the ContentManager.
Declaration
  
    IContentManager ContentManager { get; }
   
  Property Value
  
  
  CurrentGameMode
  
  
  Declaration
  
    GameMode CurrentGameMode { get; }
   
  Property Value
  
  
  CurrentSaveDataDirectory
  Gets the path on the filesystem to where the current save's data is stored. Will return null if no save data is loaded
or if the current save isn't local and persistent (i.e, if we are a client on a network game or if the current game is in-memory.)
Declaration
  
    string? CurrentSaveDataDirectory { get; }
   
  Property Value
  
  
  DeviceManager
  
  
  Declaration
  
    ITaskManager DeviceManager { get; }
   
  Property Value
  
  
  GameInstance
  
  
  Declaration
  
    Game GameInstance { get; }
   
  Property Value
  
  
  GameModeObservable
  
  
  Declaration
  
    IObservable<GameMode> GameModeObservable { get; }
   
  Property Value
  
  
  IsDebugWorld
  
  
  Declaration
  
    bool IsDebugWorld { get; }
   
  Property Value
  
  
  Kernel
  Gets a reference to the player kernel.
Declaration
  
  Property Value
  
  
  ModuleManager
  
  
  Declaration
  
    IModuleManager ModuleManager { get; }
   
  Property Value
  
  
  Network
  
  
  Declaration
  
    INetworkSimulation Network { get; }
   
  Property Value
  
  
  ScriptSystem
  Gets a reference to the script system.
Declaration
  
    IScriptSystem ScriptSystem { get; }
   
  Property Value
  
  
  SettingsManager
  Gets a reference to the game's settings manager.
Declaration
  
    ISettingsManager SettingsManager { get; }
   
  Property Value
  
  
  Shell
  Gets a reference to the game's UI manager.
Declaration
  
    IShellContext Shell { get; }
   
  Property Value
  
  
  SocialService
  
  
  Declaration
  
    ISocialService SocialService { get; }
   
  Property Value
  
  
  UriManager
  
  
  Declaration
  
    IUriManager UriManager { get; }
   
  Property Value
  
  
  VirtualScreen
  
  
  Declaration
  
    IVirtualScreen? VirtualScreen { get; }
   
  Property Value
  
  
  WorldManager
  Gets a reference to the world manager, which manages the state of the game's world.
Declaration
  
    IWorldManager WorldManager { get; }
   
  Property Value
  
  Methods
  
  CreateRestorePoint(string)
  Saves the game and creates a new restore point based on it.
Declaration
  
    Task<IGameRestorePoint?> CreateRestorePoint(string id)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | id | An arbitrary ID to assign to the restore point, for your own book-keeping. | 
    
  
  Returns
  
  
  EndCurrentGame(bool)
  
  
  Declaration
  
    Task EndCurrentGame(bool save)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | bool | save |  | 
    
  
  Returns
  
  
  GoToLoginScreen()
  
  
  Declaration
  
  Returns
  
  
  SaveCurrentGame(bool)
  
  
  Declaration
  
    Task SaveCurrentGame(bool silent)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | bool | silent |  | 
    
  
  Returns
  
  
  SetPlayerHostname(string)
  
  
  Declaration
  
    void SetPlayerHostname(string hostname)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | hostname |  | 
    
  
  
  StartCharacterCreator()
  
  
  Declaration
  
    Task StartCharacterCreator()
   
  Returns
  
  
  StartGame(IGameData)
  
  
  Declaration
  
    Task StartGame(IGameData gameData)
   
  Parameters
  
  Returns
  
  Extension Methods