diff options
Diffstat (limited to 'Source/Asset/Asset/item.h')
-rw-r--r-- | Source/Asset/Asset/item.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Source/Asset/Asset/item.h b/Source/Asset/Asset/item.h index c163b5e3..057f78ae 100644 --- a/Source/Asset/Asset/item.h +++ b/Source/Asset/Asset/item.h @@ -55,37 +55,37 @@ struct ItemAttachment { }; class Item : public AssetInfo { -public: - Item( AssetManager* owner, uint32_t asset_id ); + public: + Item(AssetManager *owner, uint32_t asset_id); static AssetType GetType() { return ITEM_ASSET; } - static const char* GetTypeName() { return "ITEM_ASSET"; } + static const char *GetTypeName() { return "ITEM_ASSET"; } static bool AssetWarning() { return true; } int sub_error; int Load(const std::string &path, uint32_t load_flags); - const char* GetLoadErrorString(); - const char* GetLoadErrorStringExtended() { return ""; } + const char *GetLoadErrorString(); + const char *GetLoadErrorStringExtended() { return ""; } void Unload(); void Reload(); void ReportLoad() override; void ReturnPaths(PathSet &path_set) override; - + const std::string &GetIKAttach(AttachmentType type) const; const std::string &GetAttachAnimPath(AttachmentType type); const std::string &GetAttachAnimBasePath(AttachmentType type); const std::string &GetObjPath(); - bool HasAnimOverride( const std::string &anim ); - const std::string &GetAnimOverride( const std::string &anim ); - char GetAnimOverrideFlags( const std::string &anim ); - bool HasAnimBlend( const std::string &anim ); - const std::string &GetAnimBlend( const std::string &anim ); - bool HasAttackOverride( const std::string &anim ); - const std::string &GetAttackOverride( const std::string &anim ); + bool HasAnimOverride(const std::string &anim); + const std::string &GetAnimOverride(const std::string &anim); + char GetAnimOverrideFlags(const std::string &anim); + bool HasAnimBlend(const std::string &anim); + const std::string &GetAnimBlend(const std::string &anim); + bool HasAttackOverride(const std::string &anim); + const std::string &GetAttackOverride(const std::string &anim); vec3 GetPoint(const std::string &name); size_t GetNumLines(); - const vec3& GetLineStart(int which); - const vec3& GetLineEnd(int which); - const std::string& GetLineMaterial(int which); + const vec3 &GetLineStart(int which); + const vec3 &GetLineEnd(int which); + const std::string &GetLineMaterial(int which); float GetMass(); float GetRangeExtender(); ItemType GetItemType(); @@ -93,15 +93,15 @@ public: bool HasAttachment(AttachmentType type); int GetNumHands(); const std::string &GetLabel(); - const std::string & GetContains() const; - const std::string& GetSoundModifier(); - const std::list<std::string> & GetAttachmentList(); - bool HasReactionOverride( const std::string &anim ); - const std::string & GetReactionOverride( const std::string &anim ); + const std::string &GetContains() const; + const std::string &GetSoundModifier(); + const std::list<std::string> &GetAttachmentList(); + bool HasReactionOverride(const std::string &anim); + const std::string &GetReactionOverride(const std::string &anim); - AssetLoaderBase* NewLoader() override; + AssetLoaderBase *NewLoader() override; -private: + private: static const int kMaxAttachments = 4; ItemAttachment attachment[kMaxAttachments]; std::list<std::string> attachments; |