[go: up one dir, main page]

Skip to content

Add entity prototypes

Entity protoypes would let you create entities with a pre-specified set of components.

auto prot = registry.prototype<Label, int>([](auto &label, auto &score){
    label.value = "Guest";
    score = 0;
});

// ...

auto new_player = registry.emplace_prototype(prot);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information