Crate bevy_ghx_proc_gen

Crate bevy_ghx_proc_gen 

Source
Expand description

This library encapsulates (and re-exports) the “ghx_proc_gen” library for 2D & 3D procedural generation with Model synthesis/Wave function Collapse, for a Bevy usage. Also provide grid utilities to manipulate & debug 2d & 3d grid data with Bevy.

Re-exports§

pub use bevy_ghx_grid;
pub use ghx_proc_gen as proc_gen;
pub use bevy_egui;

Modules§

assets
Types to define and spawn assets
debug_plugin
Debug plugin to run the generation with different visualization options
default_bundles
Adds default BundleInserter implementations for some common types.
simple_plugin
Simple plugin to run the generation
spawner_plugin
Plugin to automatically spawn generated nodes

Structs§

CursorTarget
Main component marker for a cursor target
GenerationResetEvent
The generation with the specified entity was reinitialized
GridGeneratedEvent
The generation with the specified entity was fully generated
GridNode
Used to mark a node spawned by a ghx_proc_gen::generator::Generator. Stores the NodeIndex of this node
NodesGeneratedEvent
The generation with the specified entity was updated on the specified node
VoidNodes
Component used to store model indexes of models with no assets.

Functions§

insert_bundle_from_resource_to_spawned_nodes
Utility system. Adds a Bundle (or a Component) to every Entity that has GridNode Component (this is the case of nodes spawned by the spawn_node system). The Bundle will be cloned from a Resource
insert_default_bundle_to_spawned_nodes
Utility system. Adds a Bundle (or a Component) to every Entity that has GridNode Component (this is the case of nodes spawned by the spawn_node system). The Bundle will have its default value.
spawn_node
Utility function to spawn grid nodes. Can work for multiple asset types.