summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-07 22:10:42 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-07 22:10:42 +0200 |
commit | 0c088b6c14006c0522cdfc71c36cd6941deef1d1 (patch) | |
tree | 16d0fb79a594d0672c19458fcac1e61a13a94d28 /src/shared/struct/inventory/shr_glyph.erl.m4 | |
parent | 0f890f3730a0531bc397f317c329f3beb9fc740d (diff) |
Adds family IDs to glyphs.
Diffstat (limited to 'src/shared/struct/inventory/shr_glyph.erl.m4')
-rw-r--r-- | src/shared/struct/inventory/shr_glyph.erl.m4 | 11 |
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">>. |