mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-01 20:21:24 +00:00
Added support for property descriptions
This commit is contained in:
parent
8cf9968134
commit
70d8981037
@ -32,6 +32,7 @@ class IPropertyTemplate
|
||||
protected:
|
||||
CStructTemplate *mpParent;
|
||||
TString mName;
|
||||
TString mDescription;
|
||||
u32 mID;
|
||||
ECookPreference mCookPreference;
|
||||
std::vector<u32> mAllowedVersions;
|
||||
@ -72,6 +73,9 @@ public:
|
||||
else
|
||||
mCookPreference = eNoCookPreference;
|
||||
}
|
||||
|
||||
else if (rkParamName == "description")
|
||||
mDescription = rkValue;
|
||||
}
|
||||
|
||||
virtual IProperty* InstantiateProperty() = 0;
|
||||
@ -81,6 +85,11 @@ public:
|
||||
return mName;
|
||||
}
|
||||
|
||||
inline TString Description() const
|
||||
{
|
||||
return mDescription;
|
||||
}
|
||||
|
||||
inline u32 PropertyID() const
|
||||
{
|
||||
return mID;
|
||||
@ -91,9 +100,14 @@ public:
|
||||
return mCookPreference;
|
||||
}
|
||||
|
||||
inline void SetName(const TString& Name)
|
||||
inline void SetName(const TString& rkName)
|
||||
{
|
||||
mName = Name;
|
||||
mName = rkName;
|
||||
}
|
||||
|
||||
inline void SetDescription(const TString& rkDesc)
|
||||
{
|
||||
mDescription = rkDesc;
|
||||
}
|
||||
|
||||
inline CStructTemplate* Parent() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user