hytopia 0.1.27 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/scripts.js +1 -0
- package/docs/server.basecharactercontroller.md +5 -5
- package/docs/server.basecharactercontroller.ontick.md +13 -0
- package/docs/server.basecharactercontroller.tick.md +53 -0
- package/docs/server.blocktype.md +2 -2
- package/docs/server.blocktype.onentitycollision.md +1 -1
- package/docs/server.blocktype.onentitycontactforce.md +1 -1
- package/docs/server.defaultcharactercontroller.canjump.md +1 -1
- package/docs/server.defaultcharactercontroller.canrun.md +1 -1
- package/docs/server.defaultcharactercontroller.canwalk.md +1 -1
- package/docs/server.defaultcharactercontroller.md +3 -17
- package/docs/server.entity.createcustomcharactercontroller.md +2 -2
- package/docs/server.entity.md +9 -9
- package/docs/server.entity.onblockcollision.md +1 -1
- package/docs/server.entity.onblockcontactforce.md +1 -1
- package/docs/server.entity.ondespawn.md +1 -1
- package/docs/server.entity.onentitycollision.md +1 -1
- package/docs/server.entity.onentitycontactforce.md +1 -1
- package/docs/server.entity.onspawn.md +1 -1
- package/docs/server.entity.ontick.md +1 -1
- package/docs/server.entityoptions.createcustomcharactercontroller.md +13 -0
- package/docs/server.entityoptions.md +19 -0
- package/docs/server.facecallback.md +15 -0
- package/docs/server.facecompletecallback.md +15 -0
- package/docs/server.faceoptions.md +18 -0
- package/docs/server.hytopia.basecharactercontroller.md +5 -5
- package/docs/server.hytopia.basecharactercontroller.ontick.md +13 -0
- package/docs/server.hytopia.basecharactercontroller.tick.md +53 -0
- package/docs/server.hytopia.blocktype.md +2 -2
- package/docs/server.hytopia.blocktype.onentitycollision.md +1 -1
- package/docs/server.hytopia.blocktype.onentitycontactforce.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canjump.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canrun.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.canwalk.md +1 -1
- package/docs/server.hytopia.defaultcharactercontroller.md +3 -17
- package/docs/server.hytopia.entity.createcustomcharactercontroller.md +2 -2
- package/docs/server.hytopia.entity.md +9 -9
- package/docs/server.hytopia.entity.onblockcollision.md +1 -1
- package/docs/server.hytopia.entity.onblockcontactforce.md +1 -1
- package/docs/server.hytopia.entity.ondespawn.md +1 -1
- package/docs/server.hytopia.entity.onentitycollision.md +1 -1
- package/docs/server.hytopia.entity.onentitycontactforce.md +1 -1
- package/docs/server.hytopia.entity.onspawn.md +1 -1
- package/docs/server.hytopia.entity.ontick.md +1 -1
- package/docs/server.hytopia.entityoptions.createcustomcharactercontroller.md +13 -0
- package/docs/server.hytopia.entityoptions.md +19 -0
- package/docs/server.hytopia.facecallback.md +15 -0
- package/docs/server.hytopia.facecompletecallback.md +15 -0
- package/docs/server.hytopia.faceoptions.md +18 -0
- package/docs/server.hytopia.md +77 -0
- package/docs/server.hytopia.movecallback.md +15 -0
- package/docs/server.hytopia.movecompletecallback.md +15 -0
- package/docs/server.hytopia.moveoptions.md +23 -0
- package/docs/server.hytopia.simplecharactercontroller.face.md +89 -0
- package/docs/server.hytopia.simplecharactercontroller.md +88 -0
- package/docs/server.hytopia.simplecharactercontroller.move.md +89 -0
- package/docs/server.md +77 -0
- package/docs/server.movecallback.md +15 -0
- package/docs/server.movecompletecallback.md +15 -0
- package/docs/server.moveoptions.md +23 -0
- package/docs/server.simplecharactercontroller.face.md +89 -0
- package/docs/server.simplecharactercontroller.md +88 -0
- package/docs/server.simplecharactercontroller.move.md +89 -0
- package/examples/entity-spawn/index.ts +1 -1
- package/examples/payload-game/index.ts +46 -104
- package/package.json +1 -1
- package/server.api.json +1048 -264
- package/server.d.ts +191 -51
- package/server.js +57 -57
- package/tsconfig.json +4 -1
- package/docs/server.basecharactercontroller.ontickpathfindingmovement.md +0 -13
- package/docs/server.basecharactercontroller.tickpathfindingmovement.md +0 -69
- package/docs/server.defaultcharactercontroller.tickpathfindingmovement.md +0 -69
- package/docs/server.hytopia.basecharactercontroller.ontickpathfindingmovement.md +0 -13
- package/docs/server.hytopia.basecharactercontroller.tickpathfindingmovement.md +0 -69
- package/docs/server.hytopia.defaultcharactercontroller.tickpathfindingmovement.md +0 -69
- package/examples/character-controller/tsconfig.json +0 -27
- package/examples/entity-spawn/tsconfig.json +0 -27
- package/examples/payload-game/tsconfig.json +0 -27
package/tsconfig.json
CHANGED
@@ -1,13 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [BaseCharacterController](./server.basecharactercontroller.md) > [onTickPathfindingMovement](./server.basecharactercontroller.ontickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## BaseCharacterController.onTickPathfindingMovement property
|
6
|
-
|
7
|
-
A callback function for when the controller ticks pathfinding movement.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
onTickPathfindingMovement?: (destination: Vector3, deltaTimeMs: number) => void;
|
13
|
-
```
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [BaseCharacterController](./server.basecharactercontroller.md) > [tickPathfindingMovement](./server.basecharactercontroller.tickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## BaseCharacterController.tickPathfindingMovement() method
|
6
|
-
|
7
|
-
Override this method to implement pathfinding movement logic for your character controller. NOTE: This method is not fully supported yet.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
tickPathfindingMovement(destination: Vector3, deltaTimeMs: number): void;
|
13
|
-
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
<table><thead><tr><th>
|
18
|
-
|
19
|
-
Parameter
|
20
|
-
|
21
|
-
|
22
|
-
</th><th>
|
23
|
-
|
24
|
-
Type
|
25
|
-
|
26
|
-
|
27
|
-
</th><th>
|
28
|
-
|
29
|
-
Description
|
30
|
-
|
31
|
-
|
32
|
-
</th></tr></thead>
|
33
|
-
<tbody><tr><td>
|
34
|
-
|
35
|
-
destination
|
36
|
-
|
37
|
-
|
38
|
-
</td><td>
|
39
|
-
|
40
|
-
[Vector3](./server.vector3.md)
|
41
|
-
|
42
|
-
|
43
|
-
</td><td>
|
44
|
-
|
45
|
-
The destination target to move to.
|
46
|
-
|
47
|
-
|
48
|
-
</td></tr>
|
49
|
-
<tr><td>
|
50
|
-
|
51
|
-
deltaTimeMs
|
52
|
-
|
53
|
-
|
54
|
-
</td><td>
|
55
|
-
|
56
|
-
number
|
57
|
-
|
58
|
-
|
59
|
-
</td><td>
|
60
|
-
|
61
|
-
The delta time in milliseconds since the last tick.
|
62
|
-
|
63
|
-
|
64
|
-
</td></tr>
|
65
|
-
</tbody></table>
|
66
|
-
**Returns:**
|
67
|
-
|
68
|
-
void
|
69
|
-
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [DefaultCharacterController](./server.defaultcharactercontroller.md) > [tickPathfindingMovement](./server.defaultcharactercontroller.tickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## DefaultCharacterController.tickPathfindingMovement() method
|
6
|
-
|
7
|
-
Ticks the pathfinding movement for the character controller, overriding the default implementation.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
tickPathfindingMovement(destination: Vector3, deltaTimeMs: number): void;
|
13
|
-
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
<table><thead><tr><th>
|
18
|
-
|
19
|
-
Parameter
|
20
|
-
|
21
|
-
|
22
|
-
</th><th>
|
23
|
-
|
24
|
-
Type
|
25
|
-
|
26
|
-
|
27
|
-
</th><th>
|
28
|
-
|
29
|
-
Description
|
30
|
-
|
31
|
-
|
32
|
-
</th></tr></thead>
|
33
|
-
<tbody><tr><td>
|
34
|
-
|
35
|
-
destination
|
36
|
-
|
37
|
-
|
38
|
-
</td><td>
|
39
|
-
|
40
|
-
[Vector3](./server.vector3.md)
|
41
|
-
|
42
|
-
|
43
|
-
</td><td>
|
44
|
-
|
45
|
-
The destination to move to.
|
46
|
-
|
47
|
-
|
48
|
-
</td></tr>
|
49
|
-
<tr><td>
|
50
|
-
|
51
|
-
deltaTimeMs
|
52
|
-
|
53
|
-
|
54
|
-
</td><td>
|
55
|
-
|
56
|
-
number
|
57
|
-
|
58
|
-
|
59
|
-
</td><td>
|
60
|
-
|
61
|
-
The delta time in milliseconds since the last tick.
|
62
|
-
|
63
|
-
|
64
|
-
</td></tr>
|
65
|
-
</tbody></table>
|
66
|
-
**Returns:**
|
67
|
-
|
68
|
-
void
|
69
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [BaseCharacterController](./server.hytopia.basecharactercontroller.md) > [onTickPathfindingMovement](./server.hytopia.basecharactercontroller.ontickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## HYTOPIA.BaseCharacterController.onTickPathfindingMovement property
|
6
|
-
|
7
|
-
A callback function for when the controller ticks pathfinding movement.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
onTickPathfindingMovement?: (destination: Vector3, deltaTimeMs: number) => void;
|
13
|
-
```
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [BaseCharacterController](./server.hytopia.basecharactercontroller.md) > [tickPathfindingMovement](./server.hytopia.basecharactercontroller.tickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## HYTOPIA.BaseCharacterController.tickPathfindingMovement() method
|
6
|
-
|
7
|
-
Override this method to implement pathfinding movement logic for your character controller. NOTE: This method is not fully supported yet.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
tickPathfindingMovement(destination: Vector3, deltaTimeMs: number): void;
|
13
|
-
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
<table><thead><tr><th>
|
18
|
-
|
19
|
-
Parameter
|
20
|
-
|
21
|
-
|
22
|
-
</th><th>
|
23
|
-
|
24
|
-
Type
|
25
|
-
|
26
|
-
|
27
|
-
</th><th>
|
28
|
-
|
29
|
-
Description
|
30
|
-
|
31
|
-
|
32
|
-
</th></tr></thead>
|
33
|
-
<tbody><tr><td>
|
34
|
-
|
35
|
-
destination
|
36
|
-
|
37
|
-
|
38
|
-
</td><td>
|
39
|
-
|
40
|
-
[Vector3](./server.vector3.md)
|
41
|
-
|
42
|
-
|
43
|
-
</td><td>
|
44
|
-
|
45
|
-
The destination target to move to.
|
46
|
-
|
47
|
-
|
48
|
-
</td></tr>
|
49
|
-
<tr><td>
|
50
|
-
|
51
|
-
deltaTimeMs
|
52
|
-
|
53
|
-
|
54
|
-
</td><td>
|
55
|
-
|
56
|
-
number
|
57
|
-
|
58
|
-
|
59
|
-
</td><td>
|
60
|
-
|
61
|
-
The delta time in milliseconds since the last tick.
|
62
|
-
|
63
|
-
|
64
|
-
</td></tr>
|
65
|
-
</tbody></table>
|
66
|
-
**Returns:**
|
67
|
-
|
68
|
-
void
|
69
|
-
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [DefaultCharacterController](./server.hytopia.defaultcharactercontroller.md) > [tickPathfindingMovement](./server.hytopia.defaultcharactercontroller.tickpathfindingmovement.md)
|
4
|
-
|
5
|
-
## HYTOPIA.DefaultCharacterController.tickPathfindingMovement() method
|
6
|
-
|
7
|
-
Ticks the pathfinding movement for the character controller, overriding the default implementation.
|
8
|
-
|
9
|
-
**Signature:**
|
10
|
-
|
11
|
-
```typescript
|
12
|
-
tickPathfindingMovement(destination: Vector3, deltaTimeMs: number): void;
|
13
|
-
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
<table><thead><tr><th>
|
18
|
-
|
19
|
-
Parameter
|
20
|
-
|
21
|
-
|
22
|
-
</th><th>
|
23
|
-
|
24
|
-
Type
|
25
|
-
|
26
|
-
|
27
|
-
</th><th>
|
28
|
-
|
29
|
-
Description
|
30
|
-
|
31
|
-
|
32
|
-
</th></tr></thead>
|
33
|
-
<tbody><tr><td>
|
34
|
-
|
35
|
-
destination
|
36
|
-
|
37
|
-
|
38
|
-
</td><td>
|
39
|
-
|
40
|
-
[Vector3](./server.vector3.md)
|
41
|
-
|
42
|
-
|
43
|
-
</td><td>
|
44
|
-
|
45
|
-
The destination to move to.
|
46
|
-
|
47
|
-
|
48
|
-
</td></tr>
|
49
|
-
<tr><td>
|
50
|
-
|
51
|
-
deltaTimeMs
|
52
|
-
|
53
|
-
|
54
|
-
</td><td>
|
55
|
-
|
56
|
-
number
|
57
|
-
|
58
|
-
|
59
|
-
</td><td>
|
60
|
-
|
61
|
-
The delta time in milliseconds since the last tick.
|
62
|
-
|
63
|
-
|
64
|
-
</td></tr>
|
65
|
-
</tbody></table>
|
66
|
-
**Returns:**
|
67
|
-
|
68
|
-
void
|
69
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
// Enable latest features
|
4
|
-
"lib": ["ESNext", "DOM"],
|
5
|
-
"target": "ESNext",
|
6
|
-
"module": "ESNext",
|
7
|
-
"moduleDetection": "force",
|
8
|
-
"jsx": "react-jsx",
|
9
|
-
"allowJs": true,
|
10
|
-
|
11
|
-
// Bundler mode
|
12
|
-
"moduleResolution": "bundler",
|
13
|
-
"allowImportingTsExtensions": true,
|
14
|
-
"verbatimModuleSyntax": true,
|
15
|
-
"noEmit": true,
|
16
|
-
|
17
|
-
// Best practices
|
18
|
-
"strict": true,
|
19
|
-
"skipLibCheck": true,
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
21
|
-
|
22
|
-
// Some stricter flags (disabled by default)
|
23
|
-
"noUnusedLocals": false,
|
24
|
-
"noUnusedParameters": false,
|
25
|
-
"noPropertyAccessFromIndexSignature": false
|
26
|
-
}
|
27
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
// Enable latest features
|
4
|
-
"lib": ["ESNext", "DOM"],
|
5
|
-
"target": "ESNext",
|
6
|
-
"module": "ESNext",
|
7
|
-
"moduleDetection": "force",
|
8
|
-
"jsx": "react-jsx",
|
9
|
-
"allowJs": true,
|
10
|
-
|
11
|
-
// Bundler mode
|
12
|
-
"moduleResolution": "bundler",
|
13
|
-
"allowImportingTsExtensions": true,
|
14
|
-
"verbatimModuleSyntax": true,
|
15
|
-
"noEmit": true,
|
16
|
-
|
17
|
-
// Best practices
|
18
|
-
"strict": true,
|
19
|
-
"skipLibCheck": true,
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
21
|
-
|
22
|
-
// Some stricter flags (disabled by default)
|
23
|
-
"noUnusedLocals": false,
|
24
|
-
"noUnusedParameters": false,
|
25
|
-
"noPropertyAccessFromIndexSignature": false
|
26
|
-
}
|
27
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
// Enable latest features
|
4
|
-
"lib": ["ESNext", "DOM"],
|
5
|
-
"target": "ESNext",
|
6
|
-
"module": "ESNext",
|
7
|
-
"moduleDetection": "force",
|
8
|
-
"jsx": "react-jsx",
|
9
|
-
"allowJs": true,
|
10
|
-
|
11
|
-
// Bundler mode
|
12
|
-
"moduleResolution": "bundler",
|
13
|
-
"allowImportingTsExtensions": true,
|
14
|
-
"verbatimModuleSyntax": true,
|
15
|
-
"noEmit": true,
|
16
|
-
|
17
|
-
// Best practices
|
18
|
-
"strict": true,
|
19
|
-
"skipLibCheck": true,
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
21
|
-
|
22
|
-
// Some stricter flags (disabled by default)
|
23
|
-
"noUnusedLocals": false,
|
24
|
-
"noUnusedParameters": false,
|
25
|
-
"noPropertyAccessFromIndexSignature": false
|
26
|
-
}
|
27
|
-
}
|