forked from minetest-mods/player_monoids
Remove caveats from API
This commit is contained in:
parent
9936955821
commit
025f1d398a
14
API.md
14
API.md
|
@ -74,17 +74,3 @@ the given player, if it exists.
|
|||
|
||||
```monoid:value(player)``` - The current combined value of the monoid for the
|
||||
given player.
|
||||
|
||||
Caveats
|
||||
=======
|
||||
* If the global state managed by a monoid is modified by something other than
|
||||
the monoid, you will have the same problem as when two mods both independently
|
||||
try to modify global state without going through a monoid.
|
||||
* This includes playereffects effects that affect global player state without
|
||||
going through a monoid.
|
||||
* You will also get problems if you use multiple monoids to manage the same
|
||||
global state.
|
||||
* The order that different effects get combined together is based on key order,
|
||||
which may not be predictable. So you should try to make your monoids commutative
|
||||
in addition to associative, or at least not care if the order of two changes
|
||||
is swapped.
|
Loading…
Reference in New Issue
Block a user