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.erl.m4
parentada321442febcee20e0d4e6d29238cf10e6fca6a (diff)
[Broken] Refactoring...
Diffstat (limited to 'src/shared/struct/inventory/shr_glyph.erl.m4')
-rw-r--r--src/shared/struct/inventory/shr_glyph.erl.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/src/shared/struct/inventory/shr_glyph.erl.m4 b/src/shared/struct/inventory/shr_glyph.erl.m4
index cd59a27..0ce4c47 100644
--- a/src/shared/struct/inventory/shr_glyph.erl.m4
+++ b/src/shared/struct/inventory/shr_glyph.erl.m4
@@ -35,7 +35,15 @@
[
get_id/1,
get_name/1,
- get_omnimods/1
+ get_omnimods/1,
+ ]
+).
+
+-export
+(
+ [
+ default/0,
+ default_id/0
]
).
@@ -60,3 +68,9 @@ m4_include(__MAKEFILE_DATA_DIR/glyph/global.m4.conf)m4_dnl
m4_include(__MAKEFILE_DATA_DIR/glyph/basic.m4d)m4_dnl
from_id(_) ->
from_id(<<"0">>).
+
+-spec default () -> type().
+default () -> from_id(<<"0">>).
+
+-spec default_id () -> id().
+default_id () -> <<"0">>.