GameDataclass

Lets all native and managed tools know about any engine / game entities.

objectGameData
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.GameData

Methods1

Showing 1 methods

public static System.Threading.Tasks.Task LoadEntitiesFromPackage(Sandbox.Package package)PUBLICSTATIC

Loads the entity classes from a remote sbox.game game or addon into Hammer.

ParameterTypeDescription
packagePackage
Returns:Task

Properties2

Showing 2 properties

public static System.Collections.Generic.IReadOnlyList`1<Editor.MapClass> Editor.GameData.EntityClasses { get; set; }PUBLICSTATICGETSET

A list of all entity classes exposed to tools.

Returns:IReadOnlyList<MapClass>

public static Sandbox.Package[] Editor.GameData.LoadedPackages { get; set; }PUBLICSTATICGETSET

All loaded sbox.game packages for this session to load entities for tools from.

Returns:Package[]

On this page