- METHOD(GameItem, show, void(entity this));
- void GameItem_show(entity this) { print("A game item\n"); }
+ ATTRIB(GameItem, m_name, string, string_null)
+ ATTRIB(GameItem, m_icon, string, string_null)
+ METHOD(GameItem, display, void(entity this, void(string name, string icon) returns)) {
+ returns(this.m_name, this.m_icon ? sprintf("/gfx/hud/%s/%s", cvar_string("menu_skin"), this.m_icon) : string_null);
+ }
+ METHOD(GameItem, show, void(entity this)) { print("A game item\n"); }