MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / ScriptModelSkin

Class ScriptModelSkin

plugins/script/interfaces/SkinInterface.h:12–29  ·  view source on GitHub ↗

Wrapper class to represent a ModelSkin object in Python

Source from the content-addressed store, hash-verified

10
11// Wrapper class to represent a ModelSkin object in Python
12class ScriptModelSkin
13{
14 decl::ISkin::Ptr _skin;
15public:
16 ScriptModelSkin(const decl::ISkin::Ptr& skin) :
17 _skin(skin)
18 {}
19
20 std::string getName()
21 {
22 return _skin ? _skin->getDeclName() : std::string();
23 }
24
25 std::string getRemap(const std::string& name)
26 {
27 return _skin ? _skin->getRemap(name) : std::string();
28 }
29};
30
31/**
32 * greebo: This class registers the GlobalSkinCache interface with the

Callers 1

captureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected