diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Animation/EditorCurveBinding.h |
Diffstat (limited to 'Runtime/Animation/EditorCurveBinding.h')
-rw-r--r-- | Runtime/Animation/EditorCurveBinding.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Runtime/Animation/EditorCurveBinding.h b/Runtime/Animation/EditorCurveBinding.h new file mode 100644 index 0000000..c98ec7e --- /dev/null +++ b/Runtime/Animation/EditorCurveBinding.h @@ -0,0 +1,34 @@ +#pragma once + +class MonoScript; + +struct EditorCurveBinding +{ + std::string path; + std::string attribute; ///@TODO: Rename to propertyName, thats how it is called in C# + int classID; + MonoScript* script; + bool isPPtrCurve; + + EditorCurveBinding () + { + script = NULL; + isPPtrCurve = false; + classID = 0; + } + + + EditorCurveBinding (const std::string& inPath, int inClassID, MonoScript* inScript, const std::string& inAttribute, bool inIsPPtrCurve) + { + path = inPath; + classID = inClassID; + script = inScript; + attribute = inAttribute; + isPPtrCurve = inIsPPtrCurve; + } + + friend bool operator == (const EditorCurveBinding& lhs, const EditorCurveBinding& rhs) + { + return lhs.path == rhs.path && lhs.attribute == rhs.attribute && lhs.classID == rhs.classID && lhs.script == rhs.script && lhs.isPPtrCurve == rhs.isPPtrCurve; + } +}; |