From 897ac2c97bc419c1abdcb30228e0df602cc0046d Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Mon, 19 Jun 2017 16:36:53 +0200 Subject: API enhancements, player-attribute according naming convention --- skin_meta_api.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'skin_meta_api.lua') diff --git a/skin_meta_api.lua b/skin_meta_api.lua index f01671c..5219e1d 100644 --- a/skin_meta_api.lua +++ b/skin_meta_api.lua @@ -26,6 +26,10 @@ end -- Skin methods -- In this implementation it is just access to attrubutes wrapped -- but this way allow to redefine the functionality for more complex skins provider +function skin_class:get_key() + return self._key +end + function skin_class:set_meta(key, value) self[key] = value end @@ -35,10 +39,9 @@ function skin_class:get_meta(key) end function skin_class:get_meta_string(key) - return tostring(self[key] or "") + return tostring(self:get_meta(key) or "") end - function skin_class:set_texture(value) self._texture = value end -- cgit v1.2.3