Formatted files, added types and updated class diagram
This commit is contained in:
parent
4d22976621
commit
f272d3a44f
6 changed files with 52 additions and 32 deletions
|
|
@ -2,6 +2,7 @@ class Position {
|
|||
private _x: number;
|
||||
private _y: number;
|
||||
|
||||
//region Getter & Setter
|
||||
get x(): number {
|
||||
return this._x;
|
||||
}
|
||||
|
|
@ -17,6 +18,7 @@ class Position {
|
|||
set y(value: number) {
|
||||
this._y = value;
|
||||
}
|
||||
//endregion
|
||||
|
||||
constructor(x: number, y: number) {
|
||||
this._x = x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue