Entity model
This commit is contained in:
parent
3aa7f2febd
commit
c35a12134e
1 changed files with 29 additions and 0 deletions
29
frontend/models/Entity.ts
Normal file
29
frontend/models/Entity.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
class Entity {
|
||||||
|
private _position: Position;
|
||||||
|
private _width: number;
|
||||||
|
private _height: number;
|
||||||
|
|
||||||
|
get position(): Position {
|
||||||
|
return this._position;
|
||||||
|
}
|
||||||
|
|
||||||
|
set position(value: Position) {
|
||||||
|
this._position = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get width(): number {
|
||||||
|
return this._width;
|
||||||
|
}
|
||||||
|
|
||||||
|
set width(value: number) {
|
||||||
|
this._width = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get height(): number {
|
||||||
|
return this._height;
|
||||||
|
}
|
||||||
|
|
||||||
|
set height(value: number) {
|
||||||
|
this._height = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue