Class ClimateSwaps
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public static class ClimateSwaps
Methods
| Improve this Doc View SourceApplyClimate(Int32, Int32, ClimateBases, ClimateSeason)
Converts an archive index to new climate and season. Will return same index if climate or season not supported.
Declaration
public static int ApplyClimate(int archive, int record, ClimateBases climate, ClimateSeason season)
Parameters
Type | Name | Description |
---|---|---|
Int32 | archive | Archive index of starting texture. |
Int32 | record | |
ClimateBases | climate | Climate base to apply. |
ClimateSeason | season | Climate season to apply |
Returns
Type | Description |
---|---|
Int32 | Archive index of new texture. |
FromAPIClimateBase(DFLocation.ClimateBaseType)
Convert API climate base over to DaggerfallUnity equivalent.
Declaration
public static ClimateBases FromAPIClimateBase(DFLocation.ClimateBaseType climate)
Parameters
Type | Name | Description |
---|---|---|
DFLocation.ClimateBaseType | climate | DFLocation.ClimateBaseType. |
Returns
Type | Description |
---|---|
ClimateBases | ClimateBases. |
FromAPITextureSet(DFLocation.ClimateTextureSet)
Convert API nature set to DaggerfallUnity equivalent.
Declaration
public static ClimateNatureSets FromAPITextureSet(DFLocation.ClimateTextureSet set)
Parameters
Type | Name | Description |
---|---|---|
DFLocation.ClimateTextureSet | set |
Returns
Type | Description |
---|---|
ClimateNatureSets | ClimateNatureSets. |
FromUnityClimateBase(ClimateBases)
Convert DaggerfallUnity climate base to API equivalent.
Declaration
public static DFLocation.ClimateBaseType FromUnityClimateBase(ClimateBases climate)
Parameters
Type | Name | Description |
---|---|---|
ClimateBases | climate | ClimateBases. |
Returns
Type | Description |
---|---|
DFLocation.ClimateBaseType | DFLocation.ClimateBaseType. |
GetClimateTextureInfo(Int32)
Get climate texture information.
Declaration
public static ClimateTextureInfo GetClimateTextureInfo(int archive)
Parameters
Type | Name | Description |
---|---|---|
Int32 | archive | Texture archive index. |
Returns
Type | Description |
---|---|
ClimateTextureInfo | ClimateTextureInfo. |
GetGroundArchive(ClimateBases, ClimateSeason)
Get ground archive based on climate.
Declaration
public static int GetGroundArchive(ClimateBases climateBase, ClimateSeason climateSeason)
Parameters
Type | Name | Description |
---|---|---|
ClimateBases | climateBase | Climate base. |
ClimateSeason | climateSeason | Season. |
Returns
Type | Description |
---|---|
Int32 | Ground archive matching climate and season. |
GetNatureArchive(DFLocation.ClimateTextureSet, DaggerfallDateTime.Seasons)
Declaration
public static int GetNatureArchive(DFLocation.ClimateTextureSet climateTextureSet, DaggerfallDateTime.Seasons worldSeason)
Parameters
Type | Name | Description |
---|---|---|
DFLocation.ClimateTextureSet | climateTextureSet | |
DaggerfallDateTime.Seasons | worldSeason |
Returns
Type | Description |
---|---|
Int32 |
GetNatureArchive(ClimateNatureSets, ClimateSeason)
Declaration
public static int GetNatureArchive(ClimateNatureSets natureSet, ClimateSeason climateSeason)
Parameters
Type | Name | Description |
---|---|---|
ClimateNatureSets | natureSet | |
ClimateSeason | climateSeason |
Returns
Type | Description |
---|---|
Int32 |
IsExteriorWindow(Int32, Int32)
Checks if the texture is a colour-changing exterior window.
Declaration
public static bool IsExteriorWindow(int archive, int record)
Parameters
Type | Name | Description |
---|---|---|
Int32 | archive | Archive index. |
Int32 | record | Record index. |
Returns
Type | Description |
---|---|
Boolean | True if exterior window. |