#ifndef _RIVE_STATE_MACHINE_COMPONENT_BASE_HPP_
#define _RIVE_STATE_MACHINE_COMPONENT_BASE_HPP_
+#include <string>
#include "core.hpp"
#include "core/field_types/core_string_type.hpp"
-#include <string>
namespace rive
{
class StateMachineComponentBase : public Core
private:
std::string m_Name = "";
public:
- inline std::string name() const { return m_Name; }
+ inline const std::string& name() const { return m_Name; }
void name(std::string value)
{
if (m_Name == value)
nameChanged();
}
+ void copy(const StateMachineComponentBase& object)
+ {
+ m_Name = object.m_Name;
+ }
+
bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)