class ProjectConfig

robot_2Generated
code_blocksInput

Description

The ProjectConfig class in the Sandbox.DataModel namespace is responsible for managing the configuration of a project. It provides properties and methods to handle various aspects of project configuration, such as metadata, directories, and package references.

Members

Properties

Member NameSummary
DirectoryThe directory housing this addon (TODO)
AssetsDirectoryThe directory housing this addon (TODO)
TitleThe human readable title, for example "Sandbox", "Counter-Strike"
TypeThe type of addon. Current valid values are "game"
OrgThe ident of the org that owns this addon. For example "facepunch", "valve".
IdentThe ident of this addon. For example "sandbox", "cs" or "dm98"
PackageTypeType of the package.
FullIdentReturns a combination of Org and Ident - for example "facepunch.sandbox" or "valve.cs".
SchemaThe version of the addon file. Allows us to upgrade internally.
IncludeSourceFilesIf true then we'll include all the source files
ResourcesA list of paths in which to look for extra assets to upload with the addon. Note that compiled asset files are automatically included.
PackageReferencesA list of packages that this package depends on. These should be installed alongside this package.
EditorReferencesA list of packages that this package uses but there is no need to install. For example, a map package might use a model package - but there is no need to download that model package because any usage will organically be included in the manifest. However, when loading this item in the editor, it'd make sense to install these 'cloud' packages.
MountsA list of mounts that are required
IsStandaloneOnlyWhether or not this project is standalone-only, and supports disabling the whitelist, compiling with /unsafe, etc.
MetadataCustom key-value storage for this project.

Methods

Member NameSummary
ToJsonSerialize the entire config to a JSON string.
TryGetMetaAttempts to retrieve metadata associated with a given key.
GetMetaOrDefaultRetrieves metadata associated with a given key or returns a default value if not found.
SetMetaSets metadata for a given key.