logic_constructor 0.1.0

Move combat and ability logic out of code and into HOCON config — designers tweak damage, healing, and targeting in a text file; the engine parses it into typed actions and runs them against your entities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use bitflags::bitflags;

bitflags! {
    #[derive(Debug, Clone, Copy, PartialEq, Eq)]
    pub struct CollisionKind: u8 {
        #[doc = "Self collision"]
        const SELF      = 0b0001;
        const SAME_KIND = 0b0010;
        const OTHER     = 0b0100;
    }
}