diff --git a/CNAME b/CNAME deleted file mode 100644 index f73928a..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -docs.opensurge2d.org \ No newline at end of file diff --git a/engine/player/index.html b/engine/player/index.html index d0070ef..4162a36 100644 --- a/engine/player/index.html +++ b/engine/player/index.html @@ -1898,6 +1898,13 @@ forciblyUnderwater + + +
underwater
: boolean, read-only.
Is the player underwater? Players are considered to be underwater if they are below the water level or if their forciblyUnderwater flag is set to true
.
See also: secondsToDrown, drowning, breathing, breathTime, forciblyUnderwater, waterlevel.
+See also: secondsToDrown, drowning, breathing, breathTime, forciblyUnderwater, forciblyOutOfWater, waterlevel.
secondsToDrown
: number, read-only.
The number of seconds to drown, if underwater.
@@ -3295,7 +3309,11 @@forciblyUnderwater
: boolean.
If set to true
, the underwater flag will be true regardless of the water level. If set to false
, the underwater flag will be true only if the player is below the water level. Defaults to false
.
See also: underwater, waterlevel.
+See also: underwater, waterlevel, forciblyOutOfWater.
+Available since: Open Surge 0.6.1
+If set to true
, the underwater mechanics will be disabled, even if the player is below the water level. If forciblyUnderwater is also true
, this flag will do nothing. Defaults to false
.
See also: underwater, waterlevel, forciblyUnderwater.
Available since: Open Surge 0.6.1
layer
: string.
SurgeScript features a Garbage Collector (GC) that automatically disposes objects that cannot be reached from the root (i.e., their references are lost). The Garbage Collector is available at System.gc
. Generally, you do not need to modify any of its settings.
interval
: number.
interval
: number, read-only.
Every interval
seconds, the garbage collector will be called automatically.
Note: this property is read-only since SurgeScript 0.6.0.
objectCount
: number, read-only.
How many objects were disposed when the garbage collector was last called.
collect()
Calls the Garbage Collector manually.
+Calls the Garbage Collector manually. You generally don't need to call this.
diff --git a/reference/object/index.html b/reference/object/index.html index cec984f..1d2c248 100644 --- a/reference/object/index.html +++ b/reference/object/index.html @@ -2303,13 +2303,14 @@Returns true
if the object has a function named functionName
.
hasTag(tagName)
Checks if the object has been tagged with tagName
.
Checks if the object has been tagged tagName
.
See also: TagSystem.hasTag().
Arguments
tagName
: string. The name of the tag.Returns
-Returns true
if the object has been tagged with tagName
.
Returns true
if the object has been tagged tagName
.
__invoke(functionName, paramsArray)
Invokes function functionName
, passing the parameters specified in paramsArray
. The number of elements of paramsArray
must be the same as the number of parameters required by the function to be invoked.
A new Array of strings with all tags used in all objects.
select(tagName)
Selects all objects that are tagged with tagName
.
Selects all objects that are tagged tagName
.
Arguments
tagName
: string.Returns
A new Array of strings with the names of the tags associated with the objects named objectName
. If the objects are untagged or do not exist, an empty array is returned.
hasTag(objectName, tagName)
Checks if objects named objectName
are tagged tagName
. Prefer using Object.hasTag() if possible.
See also: Object.hasTag().
+Available since: SurgeScript 0.6.0
+Arguments
+objectName
: string.tagName
: string.Returns
+Returns true
if the objects are tagged as specified, or false
otherwise.