Skip to content

Commit 270e1a3

Browse files
committed
2 parents ff6ae71 + ab7a675 commit 270e1a3

Some content is hidden

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

49 files changed

+64
-57
lines changed

functions/Cursor/isCursorShowing.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ client:
3434
- path: 'examples/isCursorShowing-3.lua'
3535
description: |
3636
This example creates a function to set the state of the [player](/player)'s cursor using the [showCursor](/showCursor) function.
37-
exampleTitle: 'Toggle Cursor'
37+
title: 'Toggle Cursor'
3838
- path: 'examples/isCursorShowing-4.lua'
3939
description: |
4040
If you are already advanced in scripting, using this code is recommended, as it is much more compact:
4141
append: true
42-
exampleTitle: 'Toggle Cursor'
42+
title: 'Toggle Cursor (Advanced)'
4343
- path: 'examples/isCursorShowing-5.lua'
4444
description: |
4545
This example creates a function that allows the [player](/player) to change the state of the cursor using the [showCursor](/showCursor) and [bindKey](/bindKey) functions.
46-
exampleTitle: 'Toggle Cursor by binded key'
46+
title: 'Toggle Cursor by bound key'
4747
- path: 'examples/isCursorShowing-6.lua'
4848
description: |
4949
If you are already advanced in scripting, using this code is recommended, as it is much more compact:
5050
append: true
51-
exampleTitle: 'Toggle Cursor by binded key'
51+
title: 'Toggle Cursor by bound key (Advanced)'

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.

0 commit comments

Comments
 (0)