Class AssetCache

Namespace
Game.Server
Assembly
Game.dll

Handles asset precaching on the server so it can be sent to clients.

public static class AssetCache
Inheritance
AssetCache
Inherited Members

Properties

MapDocument

public static ElegyMapDocument MapDocument { get; }

Property Value

ElegyMapDocument

MaterialRefs

public static Dictionary<string, int> MaterialRefs { get; }

Property Value

Dictionary<string, int>

ModelRefs

public static Dictionary<string, int> ModelRefs { get; }

Property Value

Dictionary<string, int>

OtherFileRefs

public static Dictionary<string, int> OtherFileRefs { get; }

Property Value

Dictionary<string, int>

Registry

public static AssetRegistry Registry { get; }

Property Value

AssetRegistry

SoundRefs

public static Dictionary<string, int> SoundRefs { get; }

Property Value

Dictionary<string, int>

Methods

InitLevel(ElegyMapDocument)

public static void InitLevel(ElegyMapDocument mapDocument)

Parameters

mapDocument ElegyMapDocument

LinkModel(string)

public static void LinkModel(string name)

Parameters

name string

LoadModel(string)

public static Model? LoadModel(string name)

Parameters

name string

Returns

Model

UnlinkModel(string)

public static void UnlinkModel(string name)

Parameters

name string