mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-01 05:43:22 +01:00
feat: isolated duel
This commit is contained in:
1 parent
fce5f19100
commit
0b5c2e42fb
15 files changed
+218
-249
No files matched your search
@@ -1,12 +1,9 @@
|
||||
import { useModel } from '../../../../../hooks/useModel';
|
||||
import { Duel } from '../page';
|
||||
import { useDuel } from '../../../../../stores/duel';
|
||||
|
||||
interface LightingProps {
|
||||
duel: Duel;
|
||||
}
|
||||
|
||||
export function Lighting({ duel }: LightingProps) {
|
||||
const { hasPbr } = useModel(duel.protagonist.tank.id);
|
||||
export function Lighting() {
|
||||
const protagonist = useDuel((state) => state.protagonist!);
|
||||
const { hasPbr } = useModel(protagonist.tank.id);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user