Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpVisualActor.cpp
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | public: | ||||
virtual void SetVariant(const CStr& key, const CStr& selection) | virtual void SetVariant(const CStr& key, const CStr& selection) | ||||
{ | { | ||||
m_VariantSelections[key] = selection; | m_VariantSelections[key] = selection; | ||||
if (m_Unit) | if (m_Unit) | ||||
m_Unit->SetEntitySelection(key, selection); | m_Unit->SetEntitySelection(key, selection); | ||||
} | } | ||||
virtual std::string GetAnimationName() | |||||
{ | |||||
return m_AnimName; | |||||
} | |||||
virtual void SelectAnimation(const std::string& name, bool once, fixed speed, const std::wstring& soundgroup) | virtual void SelectAnimation(const std::string& name, bool once, fixed speed, const std::wstring& soundgroup) | ||||
{ | { | ||||
m_AnimRunThreshold = fixed::Zero(); | m_AnimRunThreshold = fixed::Zero(); | ||||
m_AnimName = name; | m_AnimName = name; | ||||
m_AnimOnce = once; | m_AnimOnce = once; | ||||
m_AnimSpeed = speed; | m_AnimSpeed = speed; | ||||
m_SoundGroup = soundgroup; | m_SoundGroup = soundgroup; | ||||
m_AnimDesync = fixed::FromInt(1)/20; // TODO: make this an argument | m_AnimDesync = fixed::FromInt(1)/20; // TODO: make this an argument | ||||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator