Add uniform for lights

This commit is contained in:
schmelczerandras 2020-07-25 16:20:27 +02:00
parent e6782a9a98
commit d336bee1ba
14 changed files with 218 additions and 116 deletions

View file

@ -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;