mardi 23 juillet 2019

Flags for ability system

I would like to prepare an ability config system where I'll be able to construct new ability just from values/flags:

{
Name: "Passive Health Regeneration",
Active: false,
Affectable: "Health",
TickTime: .1,
TickAmount: -1,
Value: 10
}

But I would like to prevent usage of unhandy/useless flags so maybe there are some known good practices about it?

Aucun commentaire:

Enregistrer un commentaire