class ProjectConfig

in global :: Sandbox . DataModel

Configuration of a .


public string Title { get; set; }

The human readable title, for example "Sandbox", "Counter-Strike"

public string Type { get; set; }

The type of addon. Current valid values are "game"

public string Org { get; set; }

The ident of the org that owns this addon. For example "facepunch", "valve".

public string Ident { get; set; }

The ident of this addon. For example "sandbox", "cs" or "dm98"

public Package.Type PackageType { get; }

Type of the package.

public string FullIdent { get; }

Returns a combination of Org and Ident - for example "facepunch.sandbox" or "valve.cs".

public int Schema { get; set; }

The version of the addon file. Allows us to upgrade internally.

public bool IncludeSourceFiles { get; set; }

If true then we'll include all the source files

public string Resources { get; set; }

A list of paths in which to look for extra assets to upload with the addon. Note that compiled asset files are automatically included.

public List<string> PackageReferences { get; set; }

A list of packages that this package depends on. These should be installed alongside this package.

public List<string> EditorReferences { get; set; }

A 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.

public List<string> Mounts { get; set; }

A list of mounts that are required

public bool IsStandaloneOnly { get; set; }

Whether or not this project is standalone-only, and supports disabling the whitelist, compiling with /unsafe, etc.

public Dictionary<string,object> Metadata { get; set; }

Custom key-value storage for this project.

public bool SetMeta( string keyname, object outvalue )

Store custom data at given key in the .

  • keyname The key for the data.
  • outvalue The data itself to store.
  • Returns Always true.

public string ToString( )

😔 No documentation found.

public string ToJson( )

😔 No documentation found.

public bool TryGetMeta( string keyname, ref T outvalue )

😔 No documentation found.

public T GetMetaOrDefault( string keyname, T defaultValue )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public ProjectConfig( )

😔 No documentation found.