Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/ObjectEntry.h
Show All 34 Lines | |||||
#include "graphics/ObjectBase.h" | #include "graphics/ObjectBase.h" | ||||
class CObjectEntry | class CObjectEntry | ||||
{ | { | ||||
NONCOPYABLE(CObjectEntry); | NONCOPYABLE(CObjectEntry); | ||||
public: | public: | ||||
CObjectEntry(CObjectBase* base, CSimulation2& simulation); | CObjectEntry(const CObjectBase& base, CSimulation2& simulation); | ||||
~CObjectEntry(); | ~CObjectEntry(); | ||||
// Construct this actor, using the specified variation selections | // Construct this actor, using the specified variation selections | ||||
bool BuildVariation(const std::vector<std::set<CStr> >& selections, | bool BuildVariation(const std::vector<std::set<CStr> >& selections, | ||||
const std::vector<u8>& variationKey, CObjectManager& objectManager); | const std::vector<u8>& variationKey, CObjectManager& objectManager); | ||||
// Base actor. Contains all the things that don't change between | // Base actor. Contains all the things that don't change between | ||||
// different variations of the actor. | // different variations of the actor. | ||||
CObjectBase* m_Base; | const CObjectBase& m_Base; | ||||
// samplers list | // samplers list | ||||
std::vector<CObjectBase::Samp> m_Samplers; | std::vector<CObjectBase::Samp> m_Samplers; | ||||
// model name | // model name | ||||
VfsPath m_ModelName; | VfsPath m_ModelName; | ||||
// color (used when doing alpha-channel coloring, but not doing player-color) | // color (used when doing alpha-channel coloring, but not doing player-color) | ||||
CColor m_Color; | CColor m_Color; | ||||
// (probable TODO: make color a per-model thing, rather than per-objectEntry, | // (probable TODO: make color a per-model thing, rather than per-objectEntry, | ||||
Show All 37 Lines |
Wildfire Games · Phabricator