Making groups part of zones
This commit is contained in:
parent
3ca2a5bf68
commit
f5f9dcac04
12 changed files with 245 additions and 188 deletions
23
back/src/Model/User.ts
Normal file
23
back/src/Model/User.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { Group } from "./Group";
|
||||
import { PointInterface } from "./Websocket/PointInterface";
|
||||
import {Zone} from "_Model/Zone";
|
||||
import {Movable} from "_Model/Movable";
|
||||
import {PositionInterface} from "_Model/PositionInterface";
|
||||
|
||||
export class User implements Movable {
|
||||
public listenedZones: Set<Zone>;
|
||||
public group?: Group;
|
||||
|
||||
public constructor(
|
||||
public id: string,
|
||||
public position: PointInterface,
|
||||
public silent: boolean,
|
||||
|
||||
) {
|
||||
this.listenedZones = new Set<Zone>();
|
||||
}
|
||||
|
||||
public getPosition(): PositionInterface {
|
||||
return this.position;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue