hytopia 0.1.77 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/docs/server.entity.despawn.md +1 -1
  2. package/docs/server.entity.md +44 -2
  3. package/docs/server.entity.parent.md +13 -0
  4. package/docs/server.entity.parentnodename.md +13 -0
  5. package/docs/server.entity.spawn.md +19 -3
  6. package/docs/server.entitymanager.getentitychildren.md +55 -0
  7. package/docs/server.entitymanager.md +14 -0
  8. package/docs/server.entityoptions.md +38 -0
  9. package/docs/server.entityoptions.parent.md +13 -0
  10. package/docs/server.entityoptions.parentnodename.md +13 -0
  11. package/docs/server.gameserver.md +2 -2
  12. package/docs/{server.gameserver.modelmanager.md → server.gameserver.modelregistry.md} +3 -3
  13. package/docs/server.md +1 -1
  14. package/docs/{server.modelmanager.getboundingbox.md → server.modelregistry.getboundingbox.md} +2 -2
  15. package/docs/server.modelregistry.getnodenames.md +55 -0
  16. package/docs/server.modelregistry.instance.md +13 -0
  17. package/docs/server.modelregistry.md +139 -0
  18. package/docs/server.modelregistry.modelhasnode.md +71 -0
  19. package/examples/ai-agents/README.md +47 -0
  20. package/examples/ai-agents/assets/map.json +25828 -0
  21. package/examples/ai-agents/assets/ui/index.html +215 -0
  22. package/examples/ai-agents/index.ts +350 -0
  23. package/examples/ai-agents/package.json +16 -0
  24. package/examples/ai-agents/src/BaseAgent.ts +482 -0
  25. package/examples/ai-agents/src/behaviors/FishingBehavior.ts +181 -0
  26. package/examples/ai-agents/src/behaviors/FollowBehavior.ts +171 -0
  27. package/examples/ai-agents/src/behaviors/MiningBehavior.ts +226 -0
  28. package/examples/ai-agents/src/behaviors/PathfindingBehavior.ts +435 -0
  29. package/examples/ai-agents/src/behaviors/SpeakBehavior.ts +50 -0
  30. package/examples/ai-agents/src/behaviors/TradeBehavior.ts +254 -0
  31. package/examples/entity-controller/MyEntityController.ts +1 -1
  32. package/package.json +1 -1
  33. package/server.api.json +324 -21
  34. package/server.d.ts +47 -22
  35. package/server.js +83 -83
  36. package/docs/server.modelmanager.instance.md +0 -13
  37. package/docs/server.modelmanager.md +0 -111
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ModelManager](./server.modelmanager.md) &gt; [instance](./server.modelmanager.instance.md)
4
-
5
- ## ModelManager.instance property
6
-
7
- The global PlayerManager instance as a singleton.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- static readonly instance: ModelManager;
13
- ```
@@ -1,111 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ModelManager](./server.modelmanager.md)
4
-
5
- ## ModelManager class
6
-
7
- Manages model data for all known models of the game.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export default class ModelManager
13
- ```
14
-
15
- ## Remarks
16
-
17
- The ModelManager is created internally as a global singletone accessible with the static property `ModelManager.instance`<!-- -->.
18
-
19
- The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `ModelManager` class.
20
-
21
- ## Example
22
-
23
-
24
- ```typescript
25
- import { ModelManager } from 'hytopia';
26
-
27
- const modelManager = ModelManager.instance;
28
- const boundingBox = modelManager.getBoundingBox('models/player.gltf');
29
- ```
30
-
31
- ## Properties
32
-
33
- <table><thead><tr><th>
34
-
35
- Property
36
-
37
-
38
- </th><th>
39
-
40
- Modifiers
41
-
42
-
43
- </th><th>
44
-
45
- Type
46
-
47
-
48
- </th><th>
49
-
50
- Description
51
-
52
-
53
- </th></tr></thead>
54
- <tbody><tr><td>
55
-
56
- [instance](./server.modelmanager.instance.md)
57
-
58
-
59
- </td><td>
60
-
61
- `static`
62
-
63
- `readonly`
64
-
65
-
66
- </td><td>
67
-
68
- [ModelManager](./server.modelmanager.md)
69
-
70
-
71
- </td><td>
72
-
73
- The global PlayerManager instance as a singleton.
74
-
75
-
76
- </td></tr>
77
- </tbody></table>
78
-
79
- ## Methods
80
-
81
- <table><thead><tr><th>
82
-
83
- Method
84
-
85
-
86
- </th><th>
87
-
88
- Modifiers
89
-
90
-
91
- </th><th>
92
-
93
- Description
94
-
95
-
96
- </th></tr></thead>
97
- <tbody><tr><td>
98
-
99
- [getBoundingBox(modelUri)](./server.modelmanager.getboundingbox.md)
100
-
101
-
102
- </td><td>
103
-
104
-
105
- </td><td>
106
-
107
- Retrieves the bounding box of a model.
108
-
109
-
110
- </td></tr>
111
- </tbody></table>