# Default use, applied to all modules
global_use {
# Comma-separated modules/functions
bevy::prelude::Entity,
bevy::prelude::*
}
# Default derive, applied to all components
global_derive (Debug, Entity)
# Components are either empty structs, tuple structs or named structs (enum comming soon)
# One component declaration per line
MyComponent
MyTupleComponent str # str gets translated to String
MyNamedComponent name: String, weight: f32
# Modules are declared with the modulus symbol "%"
%object {
# Local use(overrides global use)
use {
entities::MySpecialEntity
}
# Local derive(overrides global)
derive (MySpecialEntity)
Name str
Weight f32
%item {
Item
Food
TradeGood
Weapon
Armor
}
}