Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/ObjectManager.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | public: | ||||
* Get the actor definition for the given path name. | * Get the actor definition for the given path name. | ||||
* If the actor cannot be loaded, this will return a placeholder actor. | * If the actor cannot be loaded, this will return a placeholder actor. | ||||
* @return Success/failure boolean and a valid actor definition. | * @return Success/failure boolean and a valid actor definition. | ||||
*/ | */ | ||||
std::pair<bool, CActorDef&> FindActorDef(const CStrW& actorName); | std::pair<bool, CActorDef&> FindActorDef(const CStrW& actorName); | ||||
/** | /** | ||||
* Get the object entry for a given actor & the given selections list. | * Get the object entry for a given actor & the given selections list. | ||||
* @param selections - a possibly incomplete list of selections. | * Takes a "complete selection set". These are pointers to sets that are | ||||
* @param seed - the randomness seed to use to complete the random selections. | |||||
*/ | |||||
CObjectEntry* FindObjectVariation(const CActorDef* actor, const std::vector<std::set<CStr>>& selections, uint32_t seed); | |||||
/** | |||||
* @see FindObjectVariation. | |||||
* These take a complete selection. These are pointers to sets that are | |||||
* guaranteed to exist (pointers are used to avoid copying the sets). | * guaranteed to exist (pointers are used to avoid copying the sets). | ||||
*/ | */ | ||||
CObjectEntry* FindObjectVariation(const std::shared_ptr<CObjectBase>& base, const std::vector<const std::set<CStr>*>& completeSelections); | CObjectEntry* FindObjectVariation(const std::shared_ptr<CObjectBase>& base, const std::vector<const std::set<CStr>*>& completeSelections); | ||||
CObjectEntry* FindObjectVariation(const CStrW& objname, const std::vector<const std::set<CStr>*>& completeSelections); | CObjectEntry* FindObjectVariation(const CStrW& objname, const std::vector<const std::set<CStr>*>& completeSelections); | ||||
/** | /** | ||||
* Return an object entry for each quality level of this actor. Random variations will be shared where possible. | |||||
* @param selections - a possibly incomplete list of selections. | |||||
* @param seed - the randomness seed to use to complete the random selections. | |||||
* @see FindObjectVariation | |||||
*/ | |||||
std::vector<CObjectEntry*> FindObjectVariations(const CActorDef& actor, const std::vector<std::set<CStr>>& selections, uint32_t seed); | |||||
Stan: u32? | |||||
/** | |||||
* Get the terrain object that actors managed by this manager should be linked | * Get the terrain object that actors managed by this manager should be linked | ||||
* with (primarily for the purpose of decals) | * with (primarily for the purpose of decals) | ||||
*/ | */ | ||||
CTerrain* GetTerrain(); | CTerrain* GetTerrain(); | ||||
/** | /** | ||||
* Reload any scripts that were loaded from the given filename. | * Reload any scripts that were loaded from the given filename. | ||||
* (This is used to implement hotloading.) | * (This is used to implement hotloading.) | ||||
Show All 29 Lines |
Wildfire Games · Phabricator
u32?