summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-10-07 18:04:53 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-10-07 18:04:53 +0200 |
commit | 299b1505b138c1ff4f8ad65513672ca35313cea4 (patch) | |
tree | 766b4b147a1a7609e95a3532ce7f6b57dd62e321 /src/shared/struct/shr_condition.erl | |
parent | af3ccc4ddcb9e13973b8d06283e6bf088f1d8f6a (diff) |
Starting implementation of skills and conditions.
Diffstat (limited to 'src/shared/struct/shr_condition.erl')
-rw-r--r-- | src/shared/struct/shr_condition.erl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/shared/struct/shr_condition.erl b/src/shared/struct/shr_condition.erl new file mode 100644 index 0000000..5b6f0e9 --- /dev/null +++ b/src/shared/struct/shr_condition.erl @@ -0,0 +1,35 @@ +-module(shr_condition). + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-type id() :: ataxia_id:type(). +-type trigger() :: atom(). + +-record +( + condition, + { + id :: id(), + name :: binary(), + description :: binary(), + triggers :: ordset:ordset(trigger()), + effect :: list() + } +). + +-opaque type() :: #condition{}. + +-export_type([id/0, type/0, trigger/0]). + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |