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%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec generate (shr_glyph_board:type()) -> {list(any())}.
generate (GlyphBoard) ->
{
[
{<<"msg">>, <<"add_glyph_board">>},
{<<"id">>, shr_glyph_board:get_id(GlyphBoard)},
{<<"nam">>, shr_glyph_board:get_name(GlyphBoard)},
{<<"slot">>, shr_glyph_board:get_slots(GlyphBoard)}
]
}.
|