Cleaned up vegetation_precompiled.h (#1418)

* Removed vegetation_precompiled.h
* Removed CryCommon dependency
This commit is contained in:
Mike Balfour
2021-06-18 09:28:31 -05:00
committed by GitHub
parent b17c5ca3e6
commit 13bf685661
74 changed files with 17 additions and 96 deletions
@@ -10,7 +10,6 @@
*
*/
#include "Vegetation_precompiled.h"
#include <Debugger/AreaDebugComponent.h>
#include <AzCore/Component/Entity.h>
#include <AzCore/RTTI/BehaviorContext.h>
@@ -14,6 +14,7 @@
#include <AzCore/RTTI/RTTI.h>
#include <AzCore/Asset/AssetCommon.h>
#include <AzCore/Casting/lossy_cast.h>
#include <AzCore/Component/Component.h>
#include <AzCore/Math/Color.h>
#include <AzCore/Math/Vector3.h>
@@ -31,13 +32,13 @@ namespace Vegetation
{
AZ_INLINE AZ::Color GetDebugColor()
{
static uint32 debugColor = 0xff << 8;
static uint32_t debugColor = 0xff << 8;
AZ::Color value;
value.FromU32(debugColor | (0xff << 24)); // add in alpha 255
// use a golden ratio sequence to generate the next color
// new color = fract(old color * 1.6)
// Treat the 24 bits as normalized 0 - 1
debugColor = (uint32)((((uint64)debugColor * 0x1999999ull) - 0xffffffull) & 0xffffffull);
debugColor = azlossy_cast<uint32_t>(((aznumeric_cast<uint64_t>(debugColor) * 0x1999999ull) - 0xffffffull) & 0xffffffull);
return value;
}
@@ -10,7 +10,7 @@
*
*/
#include "Vegetation_precompiled.h"
#include <VegetationProfiler.h>
#include "DebugComponent.h"
#include "AreaSystemComponent.h"
#include "InstanceSystemComponent.h"
@@ -167,7 +167,7 @@ namespace Vegetation
using AreaData = AZStd::vector<AreaTracker>;
AZStd::size_t MakeAreaSectorKey(AZ::EntityId areaId, SectorId sectorId);
AZStd::unordered_map<uint64, AreaTracker> m_currentAreasTiming;
AZStd::unordered_map<uint64_t, AreaTracker> m_currentAreasTiming;
AreaData m_areaData;
AZStd::vector<SectorTiming> m_currentSortedTimingList;
@@ -10,7 +10,6 @@
*
*/
#include "Vegetation_precompiled.h"
#include "EditorAreaDebugComponent.h"
#include <AzCore/Serialization/Utils.h>
@@ -10,7 +10,6 @@
*
*/
#include "Vegetation_precompiled.h"
#include "EditorDebugComponent.h"
#include <AzCore/Serialization/Utils.h>