Skip to content

Commit 2cc30bf

Browse files
Fix special XML static method cases of load and loadstring
1 parent 995f2d7 commit 2cc30bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+57
-50
lines changed

functions/Element/getElementHealth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: 'getElementHealth'
33
oop:
4-
entity: element
4+
element: element
55
method: getHealth
66
variable: health
77
pair: 'setElementHealth'

functions/Element/getElementPosition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: 'getElementPosition'
33
oop:
4-
entity: element
4+
element: element
55
method: getPosition
66
variable: position
77
pair: 'setElementPosition'

functions/Element/setElementHealth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: 'setElementHealth'
33
oop:
4-
entity: element
4+
element: element
55
method: setHealth
66
variable: health
77
pair: 'getElementHealth'

functions/Element/setElementPosition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: 'setElementPosition'
33
oop:
4-
entity: element
4+
element: element
55
method: setPosition
66
variable: position
77
pair: 'getElementPosition'

functions/File/fileClose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ shared: &shared
55
content: |
66
It is important to remember to close a file after you've finished all your operations on it, especially if you've been writing to the file. If you don't close a file and your resource crashes, all changes to the file may be lost.
77
oop:
8-
entity: file
8+
element: file
99
method: close
1010
description: Closes a file handle obtained by [[fileCreate]] or [[fileOpen]].
1111
parameters:

functions/File/fileCopy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ shared: &shared
55
content: |
66
If you do not want to share the content of the created file with other servers, prepend the file path with @ (See [[filepath]] for more information).
77
oop:
8-
entity: file
8+
element: file
99
static: true
1010
method: copy
1111
description: This function copies a file.

functions/File/fileCreate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ shared: &shared
1111
content: |
1212
It is important to remember to close a file after you've finished all your operations on it, especially if you've been writing to the file. If you don't close a file and your resource crashes, all changes to the file may be lost.
1313
oop:
14-
entity: file
14+
element: file
1515
static: true
1616
method: new
1717
description: Creates a new file in a directory of a resource. If there already exists a file with the specified name, it is overwritten with an empty file.

functions/File/fileDelete.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: fileDelete
33
oop:
4-
entity: file
4+
element: file
55
static: true
66
method: delete
77
description: Deletes the specified file.

functions/File/fileExists.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared: &shared
22
name: fileExists
33
oop:
4-
entity: file
4+
element: file
55
static: true
66
method: exists
77
description: This functions checks whether a specified file exists inside a resource.

functions/File/fileFlush.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ shared: &shared
44
- type: 'info'
55
content: '[[fileClose]] automatically flushes the file.'
66
oop:
7-
entity: file
7+
element: file
88
method: flush
99
description: |
1010
Forces pending disk writes to be executed. [[fileWrite]] doesn't directly write to the hard disk but places the data in a temporary buffer; only when there is enough data in the buffer it is actually written to disk. Call this function if you need the data written right now without closing the file. This is useful for log files that might want to be read while the resource is still executing. `fileFlush` can be called after each log entry is written. Without this, the file may appear empty or outdated to the user.

0 commit comments

Comments
 (0)