hytopia 0.6.32 → 0.6.34
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.
- package/bin/scripts.mjs +2 -0
- package/bun-server.mjs +17 -17
- package/docs/server.md +3 -5
- package/docs/server.particleemitter.attachedtoentitynodename.md +13 -0
- package/docs/server.particleemitter.md +44 -5
- package/docs/server.particleemitter.setattachedtoentitynodename.md +53 -0
- package/docs/server.particleemitterevent.md +14 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_attached_to_entity_node_name_.md +16 -0
- package/docs/server.particleemittereventpayloads.md +19 -0
- package/docs/server.particleemittermanager.md +4 -0
- package/docs/server.particleemitteroptions.attachedtoentitynodename.md +13 -0
- package/docs/server.particleemitteroptions.md +19 -0
- package/node-server.mjs +18 -18
- package/package.json +1 -1
- package/server.api.json +173 -2
- package/server.d.ts +35 -2
package/docs/server.md
CHANGED
|
@@ -288,11 +288,7 @@ Manages model data for all known models of the game.
|
|
|
288
288
|
|
|
289
289
|
</td><td>
|
|
290
290
|
|
|
291
|
-
Represents a particle emitter in the world.
|
|
292
|
-
|
|
293
|
-
<h2>Events</h2>
|
|
294
|
-
|
|
295
|
-
This class is an EventRouter, and instance of it emit events with payloads listed under [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->.
|
|
291
|
+
Represents a particle emitter in the world. Emit 2D particles that always face the camera.
|
|
296
292
|
|
|
297
293
|
|
|
298
294
|
</td></tr>
|
|
@@ -303,6 +299,8 @@ This class is an EventRouter, and instance of it emit events with payloads liste
|
|
|
303
299
|
|
|
304
300
|
</td><td>
|
|
305
301
|
|
|
302
|
+
Manages ParticleEmitter instances in a world.
|
|
303
|
+
|
|
306
304
|
|
|
307
305
|
</td></tr>
|
|
308
306
|
<tr><td>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ParticleEmitter](./server.particleemitter.md) > [attachedToEntityNodeName](./server.particleemitter.attachedtoentitynodename.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitter.attachedToEntityNodeName property
|
|
6
|
+
|
|
7
|
+
The name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
get attachedToEntityNodeName(): string | undefined;
|
|
13
|
+
```
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## ParticleEmitter class
|
|
6
6
|
|
|
7
|
-
Represents a particle emitter in the world.
|
|
8
|
-
|
|
9
|
-
<h2>Events</h2>
|
|
10
|
-
|
|
11
|
-
This class is an EventRouter, and instance of it emit events with payloads listed under [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->.
|
|
7
|
+
Represents a particle emitter in the world. Emit 2D particles that always face the camera.
|
|
12
8
|
|
|
13
9
|
**Signature:**
|
|
14
10
|
|
|
@@ -19,6 +15,14 @@ export default class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
19
15
|
|
|
20
16
|
**Implements:** protocol.Serializable
|
|
21
17
|
|
|
18
|
+
## Remarks
|
|
19
|
+
|
|
20
|
+
Particle emitters are created directly as instances. They support a variety of configuration options through the [ParticleEmitterOptions](./server.particleemitteroptions.md) constructor argument.
|
|
21
|
+
|
|
22
|
+
<h2>Events</h2>
|
|
23
|
+
|
|
24
|
+
This class is an EventRouter, and instance of it emit events with payloads listed under [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->.
|
|
25
|
+
|
|
22
26
|
## Example
|
|
23
27
|
|
|
24
28
|
|
|
@@ -128,6 +132,27 @@ The alpha test value, discards particle texture pixels with alpha opacity less t
|
|
|
128
132
|
The entity to which the ParticleEmitter is attached if explicitly set.
|
|
129
133
|
|
|
130
134
|
|
|
135
|
+
</td></tr>
|
|
136
|
+
<tr><td>
|
|
137
|
+
|
|
138
|
+
[attachedToEntityNodeName](./server.particleemitter.attachedtoentitynodename.md)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</td><td>
|
|
142
|
+
|
|
143
|
+
`readonly`
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</td><td>
|
|
147
|
+
|
|
148
|
+
string \| undefined
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
</td><td>
|
|
152
|
+
|
|
153
|
+
The name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
154
|
+
|
|
155
|
+
|
|
131
156
|
</td></tr>
|
|
132
157
|
<tr><td>
|
|
133
158
|
|
|
@@ -771,6 +796,20 @@ Sets the alpha test value, discards particle texture pixels with alpha opacity l
|
|
|
771
796
|
Sets the entity to which the ParticleEmitter is attached.
|
|
772
797
|
|
|
773
798
|
|
|
799
|
+
</td></tr>
|
|
800
|
+
<tr><td>
|
|
801
|
+
|
|
802
|
+
[setAttachedToEntityNodeName(attachedToEntityNodeName)](./server.particleemitter.setattachedtoentitynodename.md)
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
</td><td>
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
</td><td>
|
|
809
|
+
|
|
810
|
+
Sets the name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
811
|
+
|
|
812
|
+
|
|
774
813
|
</td></tr>
|
|
775
814
|
<tr><td>
|
|
776
815
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ParticleEmitter](./server.particleemitter.md) > [setAttachedToEntityNodeName](./server.particleemitter.setattachedtoentitynodename.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitter.setAttachedToEntityNodeName() method
|
|
6
|
+
|
|
7
|
+
Sets the name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setAttachedToEntityNodeName(attachedToEntityNodeName: string): 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
|
+
attachedToEntityNodeName
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
string
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
The name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
50
|
+
**Returns:**
|
|
51
|
+
|
|
52
|
+
void
|
|
53
|
+
|
|
@@ -71,6 +71,20 @@ SET\_ATTACHED\_TO\_ENTITY
|
|
|
71
71
|
</td><td>
|
|
72
72
|
|
|
73
73
|
|
|
74
|
+
</td></tr>
|
|
75
|
+
<tr><td>
|
|
76
|
+
|
|
77
|
+
SET\_ATTACHED\_TO\_ENTITY\_NODE\_NAME
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</td><td>
|
|
81
|
+
|
|
82
|
+
`"PARTICLE_EMITTER.SET_ATTACHED_TO_ENTITY_NODE_NAME"`
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
</td><td>
|
|
86
|
+
|
|
87
|
+
|
|
74
88
|
</td></tr>
|
|
75
89
|
<tr><td>
|
|
76
90
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md) > ["PARTICLE\_EMITTER.SET\_ATTACHED\_TO\_ENTITY\_NODE\_NAME"](./server.particleemittereventpayloads._particle_emitter.set_attached_to_entity_node_name_.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterEventPayloads."PARTICLE\_EMITTER.SET\_ATTACHED\_TO\_ENTITY\_NODE\_NAME" property
|
|
6
|
+
|
|
7
|
+
Emitted when the name of the node of the attached entity the particle emitter is attached to is set.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
[ParticleEmitterEvent.SET_ATTACHED_TO_ENTITY_NODE_NAME]: {
|
|
13
|
+
particleEmitter: ParticleEmitter;
|
|
14
|
+
attachedToEntityNodeName: string;
|
|
15
|
+
};
|
|
16
|
+
```
|
|
@@ -72,6 +72,25 @@ Emitted when a ParticleEmitter is despawned.
|
|
|
72
72
|
Emitted when the alpha test value is set.
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
</td></tr>
|
|
76
|
+
<tr><td>
|
|
77
|
+
|
|
78
|
+
["PARTICLE\_EMITTER.SET\_ATTACHED\_TO\_ENTITY\_NODE\_NAME"](./server.particleemittereventpayloads._particle_emitter.set_attached_to_entity_node_name_.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
{ particleEmitter: [ParticleEmitter](./server.particleemitter.md)<!-- -->; attachedToEntityNodeName: string; }
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
Emitted when the name of the node of the attached entity the particle emitter is attached to is set.
|
|
92
|
+
|
|
93
|
+
|
|
75
94
|
</td></tr>
|
|
76
95
|
<tr><td>
|
|
77
96
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ParticleEmitterManager class
|
|
6
6
|
|
|
7
|
+
Manages ParticleEmitter instances in a world.
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -12,6 +14,8 @@ export default class ParticleEmitterManager
|
|
|
12
14
|
|
|
13
15
|
## Remarks
|
|
14
16
|
|
|
17
|
+
The ParticleEmitterManager is created internally as a singleton for each [World](./server.world.md) instance in a game server. It allows retrieval of all loaded ParticleEmitter instances, entity attached ParticleEmitter instances, and more.
|
|
18
|
+
|
|
15
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 `ParticleEmitterManager` class.
|
|
16
20
|
|
|
17
21
|
## Properties
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [attachedToEntityNodeName](./server.particleemitteroptions.attachedtoentitynodename.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.attachedToEntityNodeName property
|
|
6
|
+
|
|
7
|
+
The name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
attachedToEntityNodeName?: string;
|
|
13
|
+
```
|
|
@@ -70,6 +70,25 @@ _(Optional)_ The alpha test value, discards particle texture pixels with alpha o
|
|
|
70
70
|
_(Optional)_ If set, the ParticleEmitter will be attached to this entity.
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
</td></tr>
|
|
74
|
+
<tr><td>
|
|
75
|
+
|
|
76
|
+
[attachedToEntityNodeName?](./server.particleemitteroptions.attachedtoentitynodename.md)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</td><td>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
</td><td>
|
|
83
|
+
|
|
84
|
+
string
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
_(Optional)_ The name of the node of the attached entity (if the attached entity is a model entity) to attach the particle emitter to.
|
|
90
|
+
|
|
91
|
+
|
|
73
92
|
</td></tr>
|
|
74
93
|
<tr><td>
|
|
75
94
|
|