54 lines
2.2 KiB
React
54 lines
2.2 KiB
React
// Metro module 3986 (f3987).
|
|
import { forwardRef, useCallback } from "react";
|
|
import { useBooleanBinding, BaseRive } from "./Module3918";
|
|
import Module3987 from "./Module3987";
|
|
import { RiveErrorBoundary } from "./Module3969";
|
|
let GameServerHostingRiveInner;
|
|
const _excluded = ["fallback", "artboard", "stateMachine", "defaultViewModelInstance", "dataBinding", "onDataBindingChange"];
|
|
const artboardProperties = {
|
|
Game_Server_Hosting_Main: {
|
|
reducedMotion: "boolean"
|
|
},
|
|
c_chara_5: {},
|
|
hytale_gameplay: {
|
|
reducedMotion: "boolean"
|
|
},
|
|
c_chara_1: {},
|
|
c_chara_4: {},
|
|
c_chara_2: {},
|
|
c_chara_3: {}
|
|
};
|
|
const artboardViewModelInstances = {
|
|
Game_Server_Hosting_Main: ["Instance"],
|
|
c_chara_5: [],
|
|
hytale_gameplay: ["Instance"],
|
|
c_chara_1: [],
|
|
c_chara_4: [],
|
|
c_chara_2: [],
|
|
c_chara_3: []
|
|
};
|
|
let c2271_9 = {
|
|
Game_Server_Hosting_Main: function GameServerHostingMainBindings(a0) {
|
|
useBooleanBinding("reducedMotion", a0.instance, a0.reducedMotionEnabled, void 0, a0.playIfNeeded);
|
|
return null;
|
|
},
|
|
hytale_gameplay: function HytalegameplayBindings(a0) {
|
|
useBooleanBinding("reducedMotion", a0.instance, a0.reducedMotionEnabled, void 0, a0.playIfNeeded);
|
|
return null;
|
|
}
|
|
};
|
|
GameServerHostingRiveInner = forwardRef(function GameServerHostingRiveInner(props, a1) {
|
|
props.fallback;
|
|
const { artboard = "Game_Server_Hosting_Main", stateMachine, defaultViewModelInstance: defaultViewModelInstance2 = "Instance", dataBinding, onDataBindingChange, ...rest } = props;
|
|
return <BaseRive ref={a1} src={Module3987} artboard={artboard} artboardProperties={artboardProperties} artboardViewModelInstances={artboardViewModelInstances} defaultViewModelInstance={defaultViewModelInstance2} stateMachine={stateMachine} renderDataBinding={useCallback((a0) => {
|
|
const Component = c2271_9[artboard];
|
|
return Component != null ? <Component {...a0} dataBinding={dataBinding} onDataBindingChange={onDataBindingChange} /> : null;
|
|
}, [artboard, dataBinding, onDataBindingChange])} {...rest} />;
|
|
});
|
|
const r45 = forwardRef(function GameServerHostingRiveWithBoundary(props, a1) {
|
|
return <RiveErrorBoundary fallback={props.fallback}>
|
|
<GameServerHostingRiveInner ref={a1} {...props} />
|
|
</RiveErrorBoundary>;
|
|
});
|
|
export { r45 as GameServerHostingRive };
|