added Position model
This commit is contained in:
parent
c35a12134e
commit
59523f4a41
1 changed files with 20 additions and 0 deletions
20
frontend/models/Position.ts
Normal file
20
frontend/models/Position.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
class Position {
|
||||||
|
private _x: number;
|
||||||
|
private _y: number;
|
||||||
|
|
||||||
|
get x(): number {
|
||||||
|
return this._x;
|
||||||
|
}
|
||||||
|
|
||||||
|
set x(value: number) {
|
||||||
|
this._x = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get y(): number {
|
||||||
|
return this._y;
|
||||||
|
}
|
||||||
|
|
||||||
|
set y(value: number) {
|
||||||
|
this._y = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue