Module veloren_common_net::synced_components::inner::buff

Structs§

  • Actual de/buff. Buff can timeout after some time if time is Some. If time is None, Buff will last indefinitely, until removed manually (by some action, like uncursing).
  • An iterator over the variants of BuffKind
  • Component holding all de/buffs that gets resolved each tick. On each tick, remaining time of buffs get lowered and buff effect of each buff is applied or not, depending on the BuffEffect (specs system will decide based on BuffEffect, to simplify implementation). TODO: Something like once flag for Buff to remove the dependence on BuffEffect enum?

Enums§

  • De/buff category ID. Similar to BuffKind, but to mark a category (for more generic usage, like positive/negative buffs).
  • Information about whether buff addition or removal was requested. This to implement “on_add” and “on_remove” hooks for constant buffs.
  • Tells a little more about the buff kind than simple buff/debuff
  • Data indicating and configuring behaviour of a de/buff.
  • De/buff Kind. This is used to determine what effects a buff will have
  • Source of the de/buff