Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/ObjectBase.h
/* Copyright (C) 2019 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | public: | ||||
VfsPath m_Material; | VfsPath m_Material; | ||||
private: | private: | ||||
// A low-quality RNG like rand48 causes visible non-random patterns (particularly | // A low-quality RNG like rand48 causes visible non-random patterns (particularly | ||||
// in large grids of the same actor with consecutive seeds, e.g. forests), | // in large grids of the same actor with consecutive seeds, e.g. forests), | ||||
// so use a better one that appears to avoid those patterns | // so use a better one that appears to avoid those patterns | ||||
using rng_t = boost::mt19937; | using rng_t = boost::mt19937; | ||||
bool m_EntityVariety = true; | |||||
std::set<CStr> CalculateRandomRemainingSelections(rng_t& rng, const std::vector<std::set<CStr> >& initialSelections); | std::set<CStr> CalculateRandomRemainingSelections(rng_t& rng, const std::vector<std::set<CStr> >& initialSelections); | ||||
std::vector< std::vector<Variant> > m_VariantGroups; | std::vector< std::vector<Variant> > m_VariantGroups; | ||||
CObjectManager& m_ObjectManager; | CObjectManager& m_ObjectManager; | ||||
std::unordered_set<VfsPath> m_UsedFiles; | std::unordered_set<VfsPath> m_UsedFiles; | ||||
void LoadVariant(const CXeromyces& XeroFile, const XMBElement& variant, Variant& currentVariant); | void LoadVariant(const CXeromyces& XeroFile, const XMBElement& variant, Variant& currentVariant); | ||||
}; | }; | ||||
#endif | #endif |
Wildfire Games · Phabricator