diff --git a/spine-cpp/spine-cpp/include/spine/EventData.h b/spine-cpp/spine-cpp/include/spine/EventData.h index 9140f54b9..58770e32c 100644 --- a/spine-cpp/spine-cpp/include/spine/EventData.h +++ b/spine-cpp/spine-cpp/include/spine/EventData.h @@ -48,27 +48,27 @@ public: /// The name of the event, which is unique within the skeleton. const String &getName() const; - int getIntValue(); + int getIntValue() const; void setIntValue(int inValue); - float getFloatValue(); + float getFloatValue() const; void setFloatValue(float inValue); - const String &getStringValue(); + const String &getStringValue() const; void setStringValue(const String &inValue); - const String &getAudioPath(); + const String &getAudioPath() const; void setAudioPath(const String &inValue); - float getVolume(); + float getVolume() const; void setVolume(float inValue); - float getBalance(); + float getBalance() const; void setBalance(float inValue); diff --git a/spine-cpp/spine-cpp/src/spine/EventData.cpp b/spine-cpp/spine-cpp/src/spine/EventData.cpp index 6c03797bb..433f03a73 100644 --- a/spine-cpp/spine-cpp/src/spine/EventData.cpp +++ b/spine-cpp/spine-cpp/src/spine/EventData.cpp @@ -51,7 +51,7 @@ const spine::String &spine::EventData::getName() const { return _name; } -int spine::EventData::getIntValue() { +int spine::EventData::getIntValue() const { return _intValue; } @@ -59,7 +59,7 @@ void spine::EventData::setIntValue(int inValue) { _intValue = inValue; } -float spine::EventData::getFloatValue() { +float spine::EventData::getFloatValue() const { return _floatValue; } @@ -67,7 +67,7 @@ void spine::EventData::setFloatValue(float inValue) { _floatValue = inValue; } -const spine::String &spine::EventData::getStringValue() { +const spine::String &spine::EventData::getStringValue() const { return _stringValue; } @@ -75,7 +75,7 @@ void spine::EventData::setStringValue(const spine::String &inValue) { this->_stringValue = inValue; } -const spine::String &spine::EventData::getAudioPath() { +const spine::String &spine::EventData::getAudioPath() const { return _audioPath; } @@ -84,7 +84,7 @@ void spine::EventData::setAudioPath(const spine::String &inValue) { } -float spine::EventData::getVolume() { +float spine::EventData::getVolume() const { return _volume; } @@ -92,7 +92,7 @@ void spine::EventData::setVolume(float inValue) { _volume = inValue; } -float spine::EventData::getBalance() { +float spine::EventData::getBalance() const { return _balance; }