refactor, simplify common access names
This commit is contained in:
parent
f277a71087
commit
55a5adcd92
5 changed files with 30 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue