Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

2.1 KB
Raw Blame
// Generated by raea-bevy-sdk from raea's Bevy App's TypeRegistry (rand (bevy_rand)); don't edit, regenerate
// (tools/bevy-plugins.sh gen). 2 component.
// - In a scene (TSX): 2 wrappers, each a <BevyComponent> (or <BevyResource>) naming its type path, which raea-render
//   applies with ReflectComponent::insert. Put a component inside the <Mesh3d> it belongs to; <RandSettings> sets the
//   plugin's resources.
// - In a TypeScript program (raea/bevy's BevyApp): `rand` holds a typed handle for every component,
//   resource, event, message and state, to spawn, insert, get, trigger, write, observe and set.
import { BevyComponent, BevyResource } from "raea/3d";
import { component, resource, event, message, state } from "raea/bevy";

/** bevy_rand::seed::RngSeed<bevy_prng::WyRand> */
export interface RngSeedWyRand {
  seed: (number)[];
}

/** bevy_rand::seed::RngSeed<bevy_prng::WyRand> (component) */
export function RngSeedWyRand(props: { value: RngSeedWyRand; from?: number }) {
  return <BevyComponent type="bevy_rand::seed::RngSeed<bevy_prng::WyRand>" value={props.value ?? null} from={props.from} />;
}

/** bevy_prng::WyRand (component) */
export function WyRand(props: { value: unknown /* bevy_prng::WyRand: opaque */; from?: number }) {
  return <BevyComponent type="bevy_prng::WyRand" value={props.value ?? null} from={props.from} />;
}

/** rand's settings: each one given is its resource, set at load (left out, the plugin's default). */
export function RandSettings(props: {
  /* no reflected resources */
}) {
  return (
    <>

    </>
  );
}

/** Typed handles for a TypeScript App (raea/bevy): `app.spawn(with(rand.X, value))`, `app.trigger(rand.E, value)`. */
export const rand = {
  plugin: "rand" as const,
  /** bevy_rand::seed::RngSeed<bevy_prng::WyRand> (component) */
  RngSeedWyRand: component<RngSeedWyRand>("bevy_rand::seed::RngSeed<bevy_prng::WyRand>"),
  /** bevy_prng::WyRand (component) */
  WyRand: component<unknown /* bevy_prng::WyRand: opaque */>("bevy_prng::WyRand"),
};

void BevyResource;
void BevyComponent;
void component;
void resource;
void event;
void message;
void state;