Add uniform for lights
This commit is contained in:
parent
e6782a9a98
commit
d336bee1ba
14 changed files with 218 additions and 116 deletions
|
|
@ -28,6 +28,10 @@ export abstract class GameObject extends Typed implements CommandReceiver {
|
|||
this.commandExecutors[commandType.name] = handler;
|
||||
}
|
||||
|
||||
public reactsToCommand<T extends Command>(commandType: new () => T): boolean {
|
||||
return this.commandExecutors.hasOwnProperty(commandType.name);
|
||||
}
|
||||
|
||||
public sendCommand(command: Command) {
|
||||
const commandType = command.constructor.name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue