Gems/LmbrCentral

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-10 20:21:46 -07:00
parent d92dd162d0
commit a9a2952750
5 changed files with 18 additions and 18 deletions
@@ -168,9 +168,9 @@ namespace LmbrCentral
{
public:
bool IsPathIntersectingObstacles(const NavigationMeshID /*meshID*/, const Vec3& /*start*/, const Vec3& /*end*/, float /*radius*/) const { return false; }
bool IsPointInsideObstacles(const Vec3& /*position*/) const { return false; }
bool IsLineSegmentIntersectingObstaclesOrCloseToThem(const Lineseg& /*linesegToTest*/, float /*maxDistanceToConsiderClose*/) const { return false; }
bool IsPathIntersectingObstacles(const NavigationMeshID /*meshID*/, const Vec3& /*start*/, const Vec3& /*end*/, float /*radius*/) const override { return false; }
bool IsPointInsideObstacles(const Vec3& /*position*/) const override { return false; }
bool IsLineSegmentIntersectingObstaclesOrCloseToThem(const Lineseg& /*linesegToTest*/, float /*maxDistanceToConsiderClose*/) const override { return false; }
};
NullPathObstacles m_pathObstacles;
@@ -344,7 +344,7 @@ namespace LmbrCentral
bool GetValidPositionNearby(const Vec3&, Vec3&) const override { return false; }
bool GetTeleportPosition(Vec3&) const override { return false; }
class IPathFollower* GetPathFollower() const override { return nullptr; }
bool IsPointValidForAgent(const Vec3&, AZ::u32) const { return true; };
bool IsPointValidForAgent(const Vec3&, AZ::u32) const override { return true; };
//// ~IAIPathAgent
};
} // namespace LmbrCentral
@@ -35,12 +35,12 @@ namespace LmbrCentral
OnGameUnpaused
);
void OnGamePaused()
void OnGamePaused() override
{
Call(FN_OnGamePaused);
}
void OnGameUnpaused()
void OnGameUnpaused() override
{
Call(FN_OnGameUnpaused);
}
@@ -57,7 +57,7 @@ namespace LmbrCentral
void SetSpawnDelayVariation(double spawnDelayVariation) override { m_config.m_spawnDelayVariation = spawnDelayVariation; }
double GetSpawnDelayVariation() override { return m_config.m_spawnDelayVariation; }
void BuildGameEntity(AZ::Entity* gameEntity);
void BuildGameEntity(AZ::Entity* gameEntity) override;
private:
//Reflected members
@@ -29,7 +29,7 @@ namespace LmbrCentral
AZ_EBUS_BEHAVIOR_BINDER(BehaviorSimpleStateComponentNotificationBusHandler, "{F935125C-AE4E-48C1-BB60-24A0559BC4D2}", AZ::SystemAllocator,
OnStateChanged);
void OnStateChanged(const char* oldState, const char* newState)
void OnStateChanged(const char* oldState, const char* newState) override
{
Call(FN_OnStateChanged, oldState, newState);
}
@@ -213,18 +213,18 @@ namespace UnitTest
// AzToolsFramework::AssetSystem::AssetSystemRequestBus::Handler overrides
const char* GetAbsoluteDevGameFolderPath() override { return ""; }
const char* GetAbsoluteDevRootFolderPath() override { return ""; }
bool GetRelativeProductPathFromFullSourceOrProductPath([[maybe_unused]] const AZStd::string& fullPath, [[maybe_unused]] AZStd::string& relativeProductPath) { return true; }
bool GetRelativeProductPathFromFullSourceOrProductPath([[maybe_unused]] const AZStd::string& fullPath, [[maybe_unused]] AZStd::string& relativeProductPath) override { return true; }
bool GenerateRelativeSourcePath(
[[maybe_unused]] const AZStd::string& sourcePath, [[maybe_unused]] AZStd::string& relativePath,
[[maybe_unused]] AZStd::string& watchFolder) { return true; }
bool GetFullSourcePathFromRelativeProductPath([[maybe_unused]] const AZStd::string& relPath, [[maybe_unused]] AZStd::string& fullSourcePath) { return true; }
bool GetAssetInfoById([[maybe_unused]] const AZ::Data::AssetId& assetId, [[maybe_unused]] const AZ::Data::AssetType& assetType, [[maybe_unused]] const AZStd::string& platformName, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& rootFilePath) { return true; }
bool GetSourceInfoBySourcePath([[maybe_unused]] const char* sourcePath, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& watchFolder) { return true; }
bool GetSourceInfoBySourceUUID([[maybe_unused]] const AZ::Uuid& sourceUuid, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& watchFolder) { return true; }
bool GetScanFolders([[maybe_unused]] AZStd::vector<AZStd::string>& scanFolders) { return true; }
bool IsAssetPlatformEnabled([[maybe_unused]] const char* platform) { return true; }
int GetPendingAssetsForPlatform([[maybe_unused]] const char* platform) { return 0; }
bool GetAssetsProducedBySourceUUID([[maybe_unused]] const AZ::Uuid& sourceUuid, [[maybe_unused]] AZStd::vector<AZ::Data::AssetInfo>& productsAssetInfo) { return true; }
[[maybe_unused]] AZStd::string& watchFolder) override { return true; }
bool GetFullSourcePathFromRelativeProductPath([[maybe_unused]] const AZStd::string& relPath, [[maybe_unused]] AZStd::string& fullSourcePath) override { return true; }
bool GetAssetInfoById([[maybe_unused]] const AZ::Data::AssetId& assetId, [[maybe_unused]] const AZ::Data::AssetType& assetType, [[maybe_unused]] const AZStd::string& platformName, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& rootFilePath) override { return true; }
bool GetSourceInfoBySourcePath([[maybe_unused]] const char* sourcePath, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& watchFolder) override { return true; }
bool GetSourceInfoBySourceUUID([[maybe_unused]] const AZ::Uuid& sourceUuid, [[maybe_unused]] AZ::Data::AssetInfo& assetInfo, [[maybe_unused]] AZStd::string& watchFolder) override { return true; }
bool GetScanFolders([[maybe_unused]] AZStd::vector<AZStd::string>& scanFolders) override { return true; }
bool IsAssetPlatformEnabled([[maybe_unused]] const char* platform) override { return true; }
int GetPendingAssetsForPlatform([[maybe_unused]] const char* platform) override { return 0; }
bool GetAssetsProducedBySourceUUID([[maybe_unused]] const AZ::Uuid& sourceUuid, [[maybe_unused]] AZStd::vector<AZ::Data::AssetInfo>& productsAssetInfo) override { return true; }
bool GetAssetSafeFolders(AZStd::vector<AZStd::string>& assetSafeFolders) override
{
char resolvedBuffer[AZ_MAX_PATH_LEN] = { 0 };