Class ModReservedLayer
One of the physics layer that was reserved for a mod.
Namespace: DaggerfallWorkshop.Game.Utility.ModSupport
Assembly: Assembly-CSharp.dll
Syntax
public sealed class ModReservedLayer : IDisposable
Properties
| Improve this Doc View SourceLayer
The numeric index of the layer.
Declaration
public int Layer { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | Layer has already been released. |
Methods
| Improve this Doc View SourceDispose()
Releases this layer so it can be made available to other mods.
Declaration
public void Dispose()
Request()
Requests a reserved layer. There is a limited number of layers so it should be released with Dispose() if not used anymore.
Declaration
public static ModReservedLayer Request()
Returns
| Type | Description |
|---|---|
| ModReservedLayer | A reserved layer or null if none is available. |
ToString()
Gets the name of the layer.
Declaration
public sealed override string ToString()
Returns
| Type | Description |
|---|---|
| String | The name associated to this layer index. |