Setup formatting
This commit is contained in:
parent
d34f25295c
commit
dd850d11d1
45 changed files with 230 additions and 190 deletions
|
|
@ -3,7 +3,7 @@ import { serializable } from '../transport/serialization/serializable';
|
|||
|
||||
@serializable
|
||||
export class Circle {
|
||||
constructor(public center: vec2, public radius: number) { }
|
||||
constructor(public center: vec2, public radius: number) {}
|
||||
|
||||
public toArray(): Array<any> {
|
||||
return [this.center, this.radius];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { serializable } from '../transport/serialization/serializable';
|
|||
|
||||
@serializable
|
||||
export class Rectangle {
|
||||
constructor(public topLeft = vec2.create(), public size = vec2.create()) { }
|
||||
constructor(public topLeft = vec2.create(), public size = vec2.create()) {}
|
||||
|
||||
public toArray(): Array<any> {
|
||||
return [this.topLeft, this.size];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue