|
void | ApplyEnvironmentPreset (EnvironmentPreset preset) |
|
NwArea? | Clone () |
| Creates a copy of this area, including everything inside of it (except players). More...
|
|
EnvironmentPreset | CreateEnvironmentPreset () |
|
AreaDestroyResult | Destroy () |
| Destroys this area and anything within it. More...
|
|
IEnumerable< T > | FindObjectsOfTypeInArea< T > () |
| Locates all objects of the specified type. More...
|
|
int | GetAreaLightColor (AreaLightColor colorType) |
| Gets a light color in this area. More...
|
|
Vector3 | GetAreaLightDirection (AreaLightDirection lightType) |
| Gets the light direction for the specified light type. More...
|
|
TileInfo | GetTileInfo (int tileX, int tileY) |
| Gets the tile info at the specified position in the area. More...
|
|
TileInfo | GetTileInfoByIndex (int index) |
| Gets the specified tile info by its index. More...
|
|
override? Guid | PeekUUID () |
| Attempts to get the UUID of this object, if assigned. More...
|
|
void | PlayAmbient () |
| Begins playback of ambient sounds in this area. More...
|
|
void | PlayBackgroundMusic () |
| Begins playback of background music in this area. More...
|
|
void | PlayBattleMusic () |
| Begins playback of battle music for this area. More...
|
|
void | RecomputeStaticLighting () |
| Notifies all clients in this area to recompute static lighting.
This can be used to update the lighting after changing any tile lights or if placeables with lights have been added/deleted. More...
|
|
void | ReloadAreaBorder () |
| Notifies all clients in this area to reload the inaccesible border tiles.
This can be used to update the edge tiles after changing a tile with SetTile(). More...
|
|
void | ReloadAreaGrass () |
| Notifies all clients in this area to recalculate grass.
This can be used to update the grass of an area after changing a tile with SetTile() that will have or used to have grass. More...
|
|
void | RemoveAreaGrassOverride (SurfaceMaterialTableEntry material) |
| Remove a grass override from this area that was set with SetAreaGrassOverride. More...
|
|
unsafe? byte[] | SerializeARE (string? areaName=null, string? resRef=null) |
|
byte?[] | SerializeGIT (ObjectTypes objectFilter=ObjectTypes.All, ICollection< NwGameObject >? exclusionList=null, bool exportVarTable=true, bool exportUUID=true, string? resRef=null) |
|
void | SetAreaDefaultGrassDisabled (bool disabled) |
| Set if the default grass of this area should be disabled. More...
|
|
void | SetAreaGrassOverride (SurfaceMaterialTableEntry material, string texture, float density, float height, Color ambientColor, Color diffuseColor) |
| Sets a grass override for a specific material in this area. More...
|
|
void | SetAreaLightColor (AreaLightColor colorType, int color, TimeSpan fadeTime=default) |
| Sets a light color in this area. More...
|
|
void | SetAreaLightDirection (AreaLightDirection lightType, Vector3 direction, TimeSpan fadeTime=default) |
| Sets the light direction for the specified light type. More...
|
|
void | SetAreaTileBorderDisabled (bool disabled) |
| Set to true to disable the inaccessible tile border in this area. Requires clients to reload the area to take effect. More...
|
|
void | SetAreaWind (Vector3 direction, float magnitude, float yaw, float pitch) |
| Sets the detailed wind data for this area. More...
|
|
void | SetFogAmount (FogType fogType, int fogAmount) |
| Sets the fog amount for this area, at the specified time of day. More...
|
|
void | SetFogColor (FogType fogType, FogColor fogColor, TimeSpan fadeTime=default) |
| Sets the fog color for this area, at the specified time of day. More...
|
|
void | SetTiles (List< TileData > data, SettleFlags flags=SettleFlags.RecomputeLighting, string tileSet="") |
| Bulk change a set of tiles in this area. More...
|
|
void | StopAmbient () |
| Stops playback of any ambient sounds in this area. More...
|
|
void | StopBackgroundMusic () |
| Stops playback of any running background music in this area. More...
|
|
void | StopBattleMusic () |
| Stops playback of any running battle music in this area. More...
|
|
async Task | AddActionToQueue (System.Action action) |
| Inserts the function call aCommand into the Action Queue, ensuring the calling object will perform actions in a particular order. More...
|
|
async Task | ClearActionQueue (bool clearCombatState=false) |
| Clear all the object's actions. More...
|
|
void | ClearEventSubscriptions () |
| Clears any event subscriptions associated with this object. More...
|
|
bool | Equals (NwObject? other) |
|
override bool | Equals (object? obj) |
|
void | ForceRefreshUUID () |
|
string | GetEventScript (EventScriptType eventType) |
| Gets the script assigned to run for the specified object event. More...
|
|
override int | GetHashCode () |
|
T | GetObjectVariable< T > (string name) |
| Gets the specified object variable for this object. More...
|
|
bool | IsEventLocked (EventScriptType eventType) |
| Gets a value indicating whether the event script can be modified for the specified event. More...
|
|
Json | SerializeToJson (bool saveObjectState) |
| Serializes this game object to a json representation More...
|
|
void | SetEventScript (EventScriptType eventType, string? script) |
| Sets the script to be run on the specified object event. More...
|
|
async Task | SpeakString (string message, TalkVolume talkVolume=TalkVolume.Talk, bool queueAsAction=false) |
| Instructs this object to speak. More...
|
|
override string | ToString () |
| The ID of this object as a string. Can be used in StringExtensions.ParseObject while the object is alive.
This cannot be used across server restarts. See UUID for a persistent unique identifier. More...
|
|
bool | TryGetUUID (out Guid uid) |
| Attempts to get the UUID for this object, assigning a new ID if it does not already exist.
More...
|
|
async Task | WaitForObjectContext () |
| Notifies then awaits for this object to become the current active object for the purpose of implicitly assigned values (e.g. effect creators).
If the current active object is already this object, then the code runs immediately. Otherwise, it will be run with all other closures.
This is the async equivalent of AssignCommand in NWScript. More...
|
|
|
static ? NwArea | Create (string resRef, string newTag="", string newName="") |
| Creates a new area from the specified resource reference. More...
|
|
static ? NwArea | Deserialize (byte[] serializedARE, byte[] serializedGIT, string newTag="", string newName="") |
|
static ? NwArea | Deserialize (string resRef, byte[] serializedARE, byte[] serializedGIT, string newTag="", string newName="") |
| Creates an area from the specified serialized area data. More...
|
|
static implicit | operator CNWSArea? (NwArea? area) |
|
static IEnumerable< T > | FindObjectsOfType< T > () |
| Locates all objects of the specified type. More...
|
|
static IEnumerable< NwObject > | FindObjectsWithTag (params string[] tags) |
| Locates all objects of that have the specified tag. More...
|
|
static IEnumerable< T > | FindObjectsWithTag< T > (params string[] tags) |
| Locates all objects of the specified type that have the specified tag. More...
|
|
static implicit | operator uint (NwObject? gameObject) |
|
static bool | operator!= (NwObject? left, NwObject? right) |
|
static bool | operator== (NwObject? left, NwObject? right) |
|
|
int | AmbientDayTrack [set] |
| Sets the daytime ambient track for this area.
See "ambientsound.2da" for track numbers. More...
|
|
int | AmbientDayVolume [set] |
| Sets the daytime ambient track volume for this area. More...
|
|
int | AmbientNightTrack [set] |
| Sets the night ambient track for this area.
See "ambientsound.2da" for track numbers. More...
|
|
int | AmbientNightVolume [set] |
| Sets the night ambient track volume for this area. More...
|
|
AreaFlags | AreaFlags [get, set] |
| Gets or sets area terrain metadata flags. More...
|
|
DayNightMode?? | DayNightMode [get, set] |
| Gets or sets the day/night mode to use for this area. More...
|
|
float | FogClipDistance [get, set] |
| Gets or sets the fog clip distance in the area. More...
|
|
bool | IsAboveGround [get, set] |
| Gets or sets whether this area is considered above ground and not under ground. More...
|
|
bool | IsBattleMusicPlaying [get] |
| Gets a value indicating whether battle music is currently playing in the area. More...
|
|
bool | IsExterior [get, set] |
| Gets or sets whether this area is considered an as exterior, and not an interior. More...
|
|
bool | IsInterior [get, set] |
| Gets or sets whether this area is considered an as interior, and not an exterior. More...
|
|
bool | IsMusicPlaying [get] |
| Gets a value indicating whether ambient music is currently playing in the area. More...
|
|
bool | IsNatural [get, set] |
| Gets or sets whether this area is considered natural and non-urban. More...
|
|
bool | IsUnderGround [get, set] |
| Gets or sets whether this area is considered under ground and not above ground. More...
|
|
bool | IsUrban [get, set] |
| Gets or sets whether this area is considered urban and not natural. More...
|
|
NwGameObject? | LastEntered [get] |
| Gets the last object that entered this area. More...
|
|
NwGameObject? | LastLeft [get] |
| Gets the last object that left this area. More...
|
|
int | LightningChance [get, set] |
| Gets or sets the percentage value (0-100) that lightning may occur. More...
|
|
int | ListenModifier [get, set] |
| Gets or sets the listen modifier for this area. More...
|
|
LoadScreenTableEntry | LoadScreen [get, set] |
| Gets or sets the load screen for this area. More...
|
|
Color | MoonAmbientColor [get, set] |
| Gets or sets the area ambient color during night time. More...
|
|
Color | MoonDiffuseColor [get, set] |
| Gets or sets the area diffuse color during night time. More...
|
|
int | MoonFogAmount [get, set] |
| Gets or sets the fog density during night time. More...
|
|
Color | MoonFogColor [get, set] |
| Gets or sets the area fog color during night time. More...
|
|
bool | MoonShadows [get, set] |
| Gets or sets whether shadows are cast during night time. More...
|
|
int | MusicBackgroundDayTrack [get, set] |
| Gets or sets the daytime background track index for this area.
See "Resources > Sounds and Music > Music" in the toolset for track numbers. More...
|
|
int | MusicBackgroundNightTrack [get, set] |
| Gets or sets the nighttime background track index for this area.
Refer to Resources > Sounds and Music > Music in the toolset for track numbers. More...
|
|
int | MusicBattleTrack [get, set] |
| Gets or sets the combat track index for this area.
Refer to Resources > Sounds and Music > Music in the toolset for track numbers. More...
|
|
IEnumerable< NwGameObject > | Objects [get] |
| Gets all Objects currently in this area. More...
|
|
Action< AreaEvents.OnEnter > | OnEnter |
|
Action< AreaEvents.OnExit > | OnExit |
|
Action< AreaEvents.OnHeartbeat > | OnHeartbeat |
|
Action< AreaEvents.OnUserDefined > | OnUserDefined |
|
int | PlayerCount [get] |
| Gets the number of players in this area. More...
|
|
PVPSetting | PVPSetting [get, set] |
| Gets or sets the PvP setting for this area. More...
|
|
int | RainChance [get, set] |
| Gets or sets the percentage value (0-100) that rain may occur. More...
|
|
bool | RestingAllowed [get, set] |
| Gets or sets whether resting is allowed in this area. More...
|
|
byte | ShadowOpacity [get, set] |
| Gets or sets the shadow opacity for this area (0-100). More...
|
|
Vector2Int | Size [get] |
| Gets the size of this area. - Returns
- The number of tiles that the area is wide/high.
More...
|
|
Skybox | SkyBox [get, set] |
| Gets or sets the current skybox for this area. More...
|
|
int | SnowChance [get, set] |
| Gets or sets the percentage value (0-100) that snow may occur. More...
|
|
int | SpotModifier [get, set] |
| Gets or sets the spot modifier for this area. More...
|
|
Color | SunAmbientColor [get, set] |
| Gets or sets the area ambient color during day time. More...
|
|
Color | SunDiffuseColor [get, set] |
| Gets or sets the area diffuse color during day time. More...
|
|
int | SunFogAmount [get, set] |
| Gets or sets the fog density during day time. More...
|
|
Color | SunFogColor [get, set] |
| Gets or sets the area fog color during day time. More...
|
|
bool | SunShadows [get, set] |
| Gets or sets whether shadows are cast during day time. More...
|
|
IReadOnlyList< TileInfo > | TileInfo [get] |
| Gets an array containing all tile data/structures for the area. More...
|
|
string | Tileset [get] |
| Gets the tileset (.set) resource name used for this area. More...
|
|
WeatherType | Weather [get, set] |
| Gets or sets the current weather conditions for this area. More...
|
|
byte | WindPower [get, set] |
| Gets or sets the wind power for this area.
Set to 0, 1 or 2. More...
|
|
string | Description [get, set] |
| Gets or sets the description for this object. More...
|
|
static EventService | EventService = null! [get] |
|
bool | HasUUID [get] |
| Gets a value indicating whether this object has an assigned UUID. More...
|
|
bool | IsValid [get] |
| Gets a value indicating whether this is a valid object. More...
|
|
IEnumerable< ObjectVariable > | LocalVariables [get] |
| Gets all local variables assigned on this object. More...
|
|
string | Name [get, set] |
| Gets or sets the name of this object. More...
|
|
static Lazy< ObjectVisibilityService > | ObjectVisibilityService = null! [get] |
|
string | OriginalDescription [get] |
| Gets the original description for this object as defined in the toolset. More...
|
|
static ResourceManager | ResourceManager = null! [get] |
|
string | ResRef [get] |
| Gets the resource reference used to create this object. More...
|
|
string | Tag [get, set] |
| Gets or sets the tag for this object. More...
|
|
Guid | UUID [get] |
| Gets the globally unique identifier for this object. More...
|
|
static VirtualMachine | VirtualMachine = null! [get] |
|
An environment/game level.