( entity_id: number, x: number, y: number, z: number )
| 13 | import { t, type ReducerCtx } from 'spacetimedb/server'; |
| 14 | |
| 15 | function newPosition( |
| 16 | entity_id: number, |
| 17 | x: number, |
| 18 | y: number, |
| 19 | z: number |
| 20 | ): Position { |
| 21 | return { |
| 22 | entity_id, |
| 23 | x, |
| 24 | y, |
| 25 | z, |
| 26 | vx: x + 10.0, |
| 27 | vy: y + 20.0, |
| 28 | vz: z + 30.0, |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | function newVelocity( |
| 33 | entity_id: number, |
no outgoing calls
no test coverage detected
searching dependent graphs…