Class DaggerfallMesh
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class DaggerfallMesh : MonoBehaviour
Properties
| Improve this Doc View SourceClimate
Declaration
public ClimateBases Climate { get; set; }
Property Value
Type | Description |
---|---|
ClimateBases |
DefaultTexturesCount
Gets number of default textures on model.
Declaration
public int DefaultTexturesCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Season
Declaration
public ClimateSeason Season { get; set; }
Property Value
Type | Description |
---|---|
ClimateSeason |
WindowStyle
Declaration
public WindowStyle WindowStyle { get; set; }
Property Value
Type | Description |
---|---|
WindowStyle |
Methods
| Improve this Doc View SourceApplyCurrentClimate()
Applies current climate settings to model.
Declaration
public void ApplyCurrentClimate()
DisableClimate(DaggerfallUnity)
Rebuild materials back to default with no climate modifier.
Declaration
public void DisableClimate(DaggerfallUnity dfUnity)
Parameters
Type | Name | Description |
---|---|---|
DaggerfallUnity | dfUnity | DaggerfallUnity singleton. Required for content readers and settings. |
GetDefaultTextures()
Get default texture keys.
Declaration
public int[] GetDefaultTextures()
Returns
Type | Description |
---|---|
Int32[] | Copy of default texture array. |
SetClimate(ClimateBases, ClimateSeason, WindowStyle)
Rebuild materials back to default with no climate modifier.
Declaration
public void SetClimate(ClimateBases climate, ClimateSeason season, WindowStyle windowStyle)
Parameters
Type | Name | Description |
---|---|---|
ClimateBases | climate | Climate to set. |
ClimateSeason | season | Season to set. |
WindowStyle | windowStyle | Style of window to set. |
SetDefaultTextures(Int32[])
Set default texture keys. This is used to rebuild materials for texture swaps.
Declaration
public void SetDefaultTextures(int[] textureKeys)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | textureKeys | Array of texture keys. |
SetDungeonTextures(Int32[])
Apply dungeon texture table.
Declaration
public void SetDungeonTextures(int[] dungeonTextureTable)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | dungeonTextureTable | Dungeon texture table changes to apply. |