aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-07 22:10:42 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-09-07 22:10:42 +0200
commit0c088b6c14006c0522cdfc71c36cd6941deef1d1 (patch)
tree16d0fb79a594d0672c19458fcac1e61a13a94d28
parent0f890f3730a0531bc397f317c329f3beb9fc740d (diff)
downloadtacticians-server-0c088b6c14006c0522cdfc71c36cd6941deef1d1.zip
tacticians-server-0c088b6c14006c0522cdfc71c36cd6941deef1d1.tar.bz2
Adds family IDs to glyphs.
-rw-r--r--src/shared/struct/inventory/shr_glyph.erl.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/src/shared/struct/inventory/shr_glyph.erl.m4 b/src/shared/struct/inventory/shr_glyph.erl.m4
index a451cc0..fdd7537 100644
--- a/src/shared/struct/inventory/shr_glyph.erl.m4
+++ b/src/shared/struct/inventory/shr_glyph.erl.m4
@@ -10,6 +10,7 @@
glyph,
{
id :: id(),
+ family_id :: id(),
name :: binary(),
omnimods :: shr_omnimods:type()
}
@@ -35,6 +36,7 @@
[
get_id/1,
get_name/1,
+ get_family_id/1,
get_omnimods/1
]
).
@@ -43,7 +45,8 @@
(
[
default/0,
- default_id/0
+ default_id/0,
+ default_family_id/0
]
).
@@ -57,6 +60,9 @@
-spec get_id (type()) -> id().
get_id (Glyph) -> Glyph#glyph.id.
+-spec get_family_id (type()) -> id().
+get_family_id (Glyph) -> Glyph#glyph.family_id.
+
-spec get_name (type()) -> binary().
get_name (Glyph) -> Glyph#glyph.name.
@@ -74,3 +80,6 @@ default () -> from_id(<<"0">>).
-spec default_id () -> id().
default_id () -> <<"0">>.
+
+-spec default_family_id () -> id().
+default_family_id () -> <<"0">>.