unrust 0.1.5

The rust side of the unity package to work with rust + bevy in unity!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::{ecs::world::EntityMut, prelude::*};

use crate::PrefabData;

pub trait GamePlugin {
    fn initialize(&self, app: &mut App);
    fn register(&self, world: &mut World, prefabs: PrefabData);

    #[allow(clippy::missing_safety_doc)]
    unsafe fn spawn_custom(
        &self,
        entity: &mut EntityMut,
        custom: *const u8,
        custom_len: usize,
        custom_state: *const u8,
        custom_state_len: usize,
    );
}