| Crates.io | slowchop_console |
| lib.rs | slowchop_console |
| version | 0.1.3 |
| created_at | 2023-11-28 07:02:43.512611+00 |
| updated_at | 2024-02-19 07:43:40.517801+00 |
| description | A Quake style console and log plugin for Bevy. |
| homepage | |
| repository | https://github.com/slowchop/console |
| max_upload_size | |
| id | 1051660 |
| size | 111,338 |
A Quake style console and log plugin for Bevy.
This was rushed out for the Bevy Jam, and only tested on macOS. Not recommended to use, unless you're willing to help fix it up. 😅
Optional arguments work, which must be after any non-optional arguments.use bevy::prelude::Event;
use slowchop_console::Actions;
#[derive(Actions, Event)]
enum MyGameActions {
Quit,
Spawn(f32, f32, f32, Option<String>),
}
This will create a quit action that takes no arguments. The spawn action takes 3 floats, and
optionally a String.
Check out the full example on how to integrate.
License: MIT OR Apache-2.0