darkness-dependent-vision/src/hooks.js

21 lines
734 B
JavaScript
Raw Normal View History

2021-06-29 20:09:34 +02:00
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
2021-06-29 20:40:54 +02:00
import registerForGetTokenConfigHeaderButtonsHook from './hooks/getTokenConfigHeaderButtons';
import registerForInitHook from './hooks/init';
import registerForRenderTokenConfigHook from './hooks/renderTokenConfig';
2021-06-29 20:40:54 +02:00
import registerForUpdateSceneHook from './hooks/updateScene';
import registerForUpdateTokenHook from './hooks/updateToken';
2021-06-29 20:09:34 +02:00
2021-06-29 20:46:48 +02:00
/**
* Register for all the hooks that darkness-dependent-vision needs to react to.
*/
2021-06-29 20:09:34 +02:00
export default function registerForHooks() {
2021-06-29 20:40:54 +02:00
registerForInitHook();
registerForUpdateSceneHook();
registerForUpdateTokenHook();
registerForGetTokenConfigHeaderButtonsHook();
registerForRenderTokenConfigHook();
2021-06-29 20:09:34 +02:00
}