Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpCinemaManager.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | virtual bool HasPath(const CStrW& name) const | ||||
return m_Paths.find(name) != m_Paths.end(); | return m_Paths.find(name) != m_Paths.end(); | ||||
} | } | ||||
virtual void ClearQueue() | virtual void ClearQueue() | ||||
{ | { | ||||
m_PathQueue.clear(); | m_PathQueue.clear(); | ||||
} | } | ||||
virtual void DeletePath(const CStrW& name) | |||||
{ | |||||
if (!HasPath(name)) | |||||
{ | |||||
LOGWARNING("Path with name '%s' doesn't exist", name.ToUTF8()); | |||||
return; | |||||
} | |||||
m_PathQueue.remove_if([name](const CCinemaPath& path) { return path.GetName() == name; }); | |||||
m_Paths.erase(name); | |||||
} | |||||
virtual const std::map<CStrW, CCinemaPath>& GetPaths() const | virtual const std::map<CStrW, CCinemaPath>& GetPaths() const | ||||
{ | { | ||||
return m_Paths; | return m_Paths; | ||||
} | } | ||||
virtual void SetPaths(const std::map<CStrW, CCinemaPath>& newPaths) | virtual void SetPaths(const std::map<CStrW, CCinemaPath>& newPaths) | ||||
{ | { | ||||
m_Paths = newPaths; | m_Paths = newPaths; | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator