summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-01 18:02:12 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-01 18:02:12 +0200
commit567ad4994492f4d53325260c63638cf12fe928e4 (patch)
tree98183a7f0b520764cf84f5c872e5a117005e1a81 /src/shared/struct/inventory/shr_glyph_board.erl.m4
parentada321442febcee20e0d4e6d29238cf10e6fca6a (diff)
[Broken] Refactoring...
Diffstat (limited to 'src/shared/struct/inventory/shr_glyph_board.erl.m4')
-rw-r--r--src/shared/struct/inventory/shr_glyph_board.erl.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/src/shared/struct/inventory/shr_glyph_board.erl.m4 b/src/shared/struct/inventory/shr_glyph_board.erl.m4
index 7fe77b1..c2128a9 100644
--- a/src/shared/struct/inventory/shr_glyph_board.erl.m4
+++ b/src/shared/struct/inventory/shr_glyph_board.erl.m4
@@ -43,7 +43,8 @@
-export
(
[
- none/0,
+ default/0,
+ default_id/0,
get_omnimods_with_glyphs/2
]
).
@@ -91,10 +92,10 @@ get_slots (GlyphBoard) -> GlyphBoard#glyph_board.slots.
m4_include(__MAKEFILE_DATA_DIR/glyph_board/global.m4.conf)m4_dnl
m4_include(__MAKEFILE_DATA_DIR/glyph_board/basic.m4d)m4_dnl
from_id(_) ->
- none().
+ default().
--spec none () -> type().
-none () -> from_id(<<"0">>).
+-spec default () -> type().
+default () -> from_id(<<"0">>).
-spec get_omnimods_with_glyphs
(
@@ -107,3 +108,6 @@ get_omnimods_with_glyphs (Glyphs, GlyphBoard) ->
BoardSlots = GlyphBoard#glyph_board.slots,
get_omnimods_with_glyphs_internals(BoardOmnimods, Glyphs, BoardSlots).
+
+-spec default_id () -> id().
+default_id () -> <<"0">>.