Nucleus handler tools โบ Docs โบ Context โบ GetFolder
Context.GetFolder
Open in the workbench (search, and try it in a handler)
Context.GetFolder(folder: Nucleus.Folder): string
Path to the Nucleus Co-op current instance root folder (Nucleus-Coop\content\GUID\Instance#).
folder: Nucleus.Folder.InstancedGameFolder (this instance's root folder once it is set up), MainGameFolder (the folder holding the game's exe) or Documents (the user's Documents folder).
Category: Path variables
In practice
Returns a folder of this instance. Nucleus.Folder.InstancedGameFolder is the instance's own copy of the game folder (where Game.SymlinkGame links the game), the one handlers almost always ask for in Game.Play, to change files there; Nucleus.Folder.Documents is the user's Documents folder.
Is "In practice" right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback
Example
var gameFolder = Context.GetFolder(
Nucleus.Folder.InstancedGameFolder
);
Is the doc right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback