gallium_ecs 0.2.0

A simple entity-component-system crate for rust with serialization support
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::any::TypeId;

/** Get the type name of a type */
pub(crate) fn nameof<T>(_: &T) -> &'static str {
    return std::any::type_name::<T>();
}

/** Get the type-id of a type */
pub(crate) fn typeid<T: 'static>(_: &T) -> std::any::TypeId {
    return std::any::TypeId::of::<T>();
}