Refactor backend to use commands
This commit is contained in:
parent
503c99cb1f
commit
7cf33b9f1a
1 changed files with 144 additions and 156 deletions
7
backend/src/react-to-collision.ts
Normal file
7
backend/src/react-to-collision.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Command, GameObject } from 'shared';
|
||||
|
||||
export class ReactToCollisionCommand extends Command {
|
||||
public constructor(public readonly other: GameObject) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue