refactor, simplify common access names

This commit is contained in:
Matthieu Jolimaitre 2024-04-10 03:15:01 +02:00
parent f277a71087
commit 55a5adcd92
5 changed files with 30 additions and 20 deletions

View file

@ -48,7 +48,7 @@ export class Session {
}
send_display(width: number, height: number) {
const raw = this.engine.run(sys_render_world(this.entity.get_force(CompPos).position, v2(width, height)));
const raw = this.engine.run(sys_render_world(this.entity.get_force(CompPos).pos, v2(width, height)));
this.client.outputs.send({ kind: "display", content: { raw } });
}
@ -70,7 +70,7 @@ export function sys_spawn_player(position: Vec2) {
};
}
class CompPlayer {
export class CompPlayer {
life;
constructor() {
this.life = 10;