API ReferenceSandbox.Mounting

Directoryclass

object→Directory
Namespace
Sandbox.Mounting
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Mounting.Directory

Methods4

Showing 4 methods

public static Sandbox.Mounting.BaseGameMount Get(string name)PUBLICSTATIC

Get a specific mount by name

ParameterTypeDescription
namestring—
Returns:BaseGameMount—

public static System.Nullable`1<Sandbox.Mounting.MountResourceInfo> GetMetadata(string filename)PUBLICSTATIC

Get metadata for a resource

ParameterTypeDescription
filenamestring—
Returns:Nullable<MountResourceInfo>—

public static System.Threading.Tasks.Task`1<Sandbox.Mounting.BaseGameMount> Mount(string name)PUBLICSTATIC

Mount this game if we can. Returns null if it can't be mounted, or the mount object if it can. If we're already mounted, will just return the mount straight away.

ParameterTypeDescription
namestring—
Returns:Task<BaseGameMount>—

On this page