more Code/Framework fixes
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -266,7 +266,7 @@ namespace AZ
|
|||||||
_ComponentClass::RTTI_Type().ToString<AZStd::string>().c_str(), descriptor->GetName(), _ComponentClass::RTTI_TypeName()); \
|
_ComponentClass::RTTI_Type().ToString<AZStd::string>().c_str(), descriptor->GetName(), _ComponentClass::RTTI_TypeName()); \
|
||||||
return nullptr; \
|
return nullptr; \
|
||||||
} \
|
} \
|
||||||
else if (descriptor->GetName() != _ComponentClass::RTTI_TypeName()) \
|
if (descriptor->GetName() != _ComponentClass::RTTI_TypeName()) \
|
||||||
{ \
|
{ \
|
||||||
AZ_Error("Component", false, "The same component UUID (%s) / name (%s) was registered twice. This isn't allowed, " \
|
AZ_Error("Component", false, "The same component UUID (%s) / name (%s) was registered twice. This isn't allowed, " \
|
||||||
"it can cause lifetime management issues / crashes.\nThis situation can happen by declaring a component " \
|
"it can cause lifetime management issues / crashes.\nThis situation can happen by declaring a component " \
|
||||||
|
|||||||
@@ -941,10 +941,7 @@ namespace AZ
|
|||||||
{
|
{
|
||||||
return AZStd::shared_ptr<DestType>(ptr, castPtr);
|
return AZStd::shared_ptr<DestType>(ptr, castPtr);
|
||||||
}
|
}
|
||||||
else
|
return AZStd::shared_ptr<DestType>();
|
||||||
{
|
|
||||||
return AZStd::shared_ptr<DestType>();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RttiCast specialization for intrusive_ptr.
|
// RttiCast specialization for intrusive_ptr.
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace AZ::IO
|
|||||||
void SetAlias(const char* alias, const char* path) override;
|
void SetAlias(const char* alias, const char* path) override;
|
||||||
void ClearAlias(const char* alias) override;
|
void ClearAlias(const char* alias) override;
|
||||||
AZStd::optional<AZ::u64> ConvertToAlias(char* inOutBuffer, AZ::u64 bufferLength) const override;
|
AZStd::optional<AZ::u64> ConvertToAlias(char* inOutBuffer, AZ::u64 bufferLength) const override;
|
||||||
bool ConvertToAlias(AZ::IO::FixedMaxPath& convertedPath, const AZ::IO::PathView& path) const;
|
bool ConvertToAlias(AZ::IO::FixedMaxPath& convertedPath, const AZ::IO::PathView& path) const override;
|
||||||
using FileIOBase::ConvertToAlias;
|
using FileIOBase::ConvertToAlias;
|
||||||
const char* GetAlias(const char* alias) const override;
|
const char* GetAlias(const char* alias) const override;
|
||||||
bool ResolvePath(const char* path, char* resolvedPath, AZ::u64 resolvedPathSize) const override;
|
bool ResolvePath(const char* path, char* resolvedPath, AZ::u64 resolvedPathSize) const override;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace AZ::IO
|
|||||||
NestedArchive(IArchive* pArchive, AZStd::string_view strBindRoot, ZipDir::CachePtr pCache, uint32_t nFlags = 0);
|
NestedArchive(IArchive* pArchive, AZStd::string_view strBindRoot, ZipDir::CachePtr pCache, uint32_t nFlags = 0);
|
||||||
~NestedArchive() override;
|
~NestedArchive() override;
|
||||||
|
|
||||||
auto GetRootFolderHandle() -> Handle;
|
auto GetRootFolderHandle() -> Handle override;
|
||||||
|
|
||||||
// Adds a new file to the zip or update an existing one
|
// Adds a new file to the zip or update an existing one
|
||||||
// adds a directory (creates several nested directories if needed)
|
// adds a directory (creates several nested directories if needed)
|
||||||
@@ -66,26 +66,26 @@ namespace AZ::IO
|
|||||||
int RemoveDir(AZStd::string_view szRelativePath) override;
|
int RemoveDir(AZStd::string_view szRelativePath) override;
|
||||||
|
|
||||||
// deletes all files from the archive
|
// deletes all files from the archive
|
||||||
int RemoveAll();
|
int RemoveAll() override;
|
||||||
|
|
||||||
// finds the file; you don't have to close the returned handle
|
// finds the file; you don't have to close the returned handle
|
||||||
Handle FindFile(AZStd::string_view szRelativePath);
|
Handle FindFile(AZStd::string_view szRelativePath) override;
|
||||||
|
|
||||||
// returns the size of the file (unpacked) by the handle
|
// returns the size of the file (unpacked) by the handle
|
||||||
uint64_t GetFileSize(Handle fileHandle);
|
uint64_t GetFileSize(Handle fileHandle) override;
|
||||||
|
|
||||||
// reads the file into the preallocated buffer (must be at least the size of GetFileSize())
|
// reads the file into the preallocated buffer (must be at least the size of GetFileSize())
|
||||||
int ReadFile(Handle fileHandle, void* pBuffer);
|
int ReadFile(Handle fileHandle, void* pBuffer) override;
|
||||||
|
|
||||||
// returns the full path to the archive file
|
// returns the full path to the archive file
|
||||||
const char* GetFullPath() const;
|
const char* GetFullPath() const override;
|
||||||
ZipDir::Cache* GetCache();
|
ZipDir::Cache* GetCache();
|
||||||
|
|
||||||
uint32_t GetFlags() const;
|
uint32_t GetFlags() const override;
|
||||||
bool SetFlags(uint32_t nFlagsToSet);
|
bool SetFlags(uint32_t nFlagsToSet) override;
|
||||||
bool ResetFlags(uint32_t nFlagsToReset);
|
bool ResetFlags(uint32_t nFlagsToReset) override;
|
||||||
|
|
||||||
bool SetPackAccessible(bool bAccessible);
|
bool SetPackAccessible(bool bAccessible) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// returns the pointer to the relative file path to be passed
|
// returns the pointer to the relative file path to be passed
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace AzFramework
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AZ_RTTI(GenericAssetHandlerBase, "{B153B8B5-25CC-4BB7-A2BD-9A47ECF4123C}", AZ::Data::AssetHandler);
|
AZ_RTTI(GenericAssetHandlerBase, "{B153B8B5-25CC-4BB7-A2BD-9A47ECF4123C}", AZ::Data::AssetHandler);
|
||||||
virtual ~GenericAssetHandlerBase() {}
|
virtual ~GenericAssetHandlerBase() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename AssetType>
|
template <typename AssetType>
|
||||||
@@ -186,7 +186,7 @@ namespace AzFramework
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanHandleAsset(const AZ::Data::AssetId& id) const
|
bool CanHandleAsset(const AZ::Data::AssetId& id) const override
|
||||||
{
|
{
|
||||||
AZStd::string assetPath;
|
AZStd::string assetPath;
|
||||||
EBUS_EVENT_RESULT(assetPath, AZ::Data::AssetCatalogRequestBus, GetAssetPathById, id);
|
EBUS_EVENT_RESULT(assetPath, AZ::Data::AssetCatalogRequestBus, GetAssetPathById, id);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace AzFramework
|
|||||||
// AZ::NonUniformScaleRequests::Handler ...
|
// AZ::NonUniformScaleRequests::Handler ...
|
||||||
AZ::Vector3 GetScale() const override;
|
AZ::Vector3 GetScale() const override;
|
||||||
void SetScale(const AZ::Vector3& scale) override;
|
void SetScale(const AZ::Vector3& scale) override;
|
||||||
void RegisterScaleChangedEvent(AZ::NonUniformScaleChangedEvent::Handler& handler);
|
void RegisterScaleChangedEvent(AZ::NonUniformScaleChangedEvent::Handler& handler) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// AZ::Component ...
|
// AZ::Component ...
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace AzFramework
|
|||||||
// EntityContext
|
// EntityContext
|
||||||
AZ::Entity* CreateEntity(const char* name) override;
|
AZ::Entity* CreateEntity(const char* name) override;
|
||||||
void OnRootEntityReloaded() override;
|
void OnRootEntityReloaded() override;
|
||||||
void OnContextEntitiesAdded(const EntityList& entities);
|
void OnContextEntitiesAdded(const EntityList& entities) override;
|
||||||
void OnContextReset() override;
|
void OnContextReset() override;
|
||||||
bool ValidateEntitiesAreValidForContext(const EntityList& entities) override;
|
bool ValidateEntitiesAreValidForContext(const EntityList& entities) override;
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ namespace AzFramework
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// AZ::Component
|
// AZ::Component
|
||||||
virtual void Init();
|
void Init() override;
|
||||||
virtual void Activate();
|
void Activate() override;
|
||||||
virtual void Deactivate();
|
void Deactivate() override;
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ namespace AzFramework
|
|||||||
//! All current and added controllers will be registered with this viewport.
|
//! All current and added controllers will be registered with this viewport.
|
||||||
void RegisterViewportContext(ViewportId viewport) override;
|
void RegisterViewportContext(ViewportId viewport) override;
|
||||||
//! Unregisters a Viewport from this list and all associated controllers.
|
//! Unregisters a Viewport from this list and all associated controllers.
|
||||||
void UnregisterViewportContext(ViewportId viewport);
|
void UnregisterViewportContext(ViewportId viewport) override;
|
||||||
//! All ViewportControllerLists have a priority of Custom to ensure
|
//! All ViewportControllerLists have a priority of Custom to ensure
|
||||||
//! that they receive events at all priorities from any parent controllers.
|
//! that they receive events at all priorities from any parent controllers.
|
||||||
AzFramework::ViewportControllerPriority GetPriority() const { return ViewportControllerPriority::DispatchToAllPriorities; }
|
AzFramework::ViewportControllerPriority GetPriority() const override { return ViewportControllerPriority::DispatchToAllPriorities; }
|
||||||
//! Returns true if this controller list is enabled, i.e.
|
//! Returns true if this controller list is enabled, i.e.
|
||||||
//! it is accepting and forwarding input and update events to its children.
|
//! it is accepting and forwarding input and update events to its children.
|
||||||
bool IsEnabled() const;
|
bool IsEnabled() const;
|
||||||
|
|||||||
@@ -44,12 +44,12 @@ namespace AZ
|
|||||||
virtual ~ITestEnvironment()
|
virtual ~ITestEnvironment()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void SetUp() override final
|
void SetUp() final
|
||||||
{
|
{
|
||||||
SetupEnvironment();
|
SetupEnvironment();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TearDown() override final
|
void TearDown() final
|
||||||
{
|
{
|
||||||
TeardownEnvironment();
|
TeardownEnvironment();
|
||||||
}
|
}
|
||||||
@@ -218,7 +218,7 @@ namespace AZ
|
|||||||
public:
|
public:
|
||||||
std::list<std::string> resultList;
|
std::list<std::string> resultList;
|
||||||
|
|
||||||
void OnTestEnd(const ::testing::TestInfo& test_info)
|
void OnTestEnd(const ::testing::TestInfo& test_info) override
|
||||||
{
|
{
|
||||||
std::string result;
|
std::string result;
|
||||||
if (test_info.result()->Failed())
|
if (test_info.result()->Failed())
|
||||||
@@ -233,7 +233,7 @@ namespace AZ
|
|||||||
resultList.emplace_back(formattedResult);
|
resultList.emplace_back(formattedResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnTestProgramEnd(const ::testing::UnitTest& unit_test)
|
void OnTestProgramEnd(const ::testing::UnitTest& unit_test) override
|
||||||
{
|
{
|
||||||
for (std::string testResults : resultList)
|
for (std::string testResults : resultList)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ namespace GridMate
|
|||||||
|
|
||||||
typedef AZStd::intrusive_ptr<BitmaskInterestChunk> Ptr;
|
typedef AZStd::intrusive_ptr<BitmaskInterestChunk> Ptr;
|
||||||
bool IsReplicaMigratable() override { return false; }
|
bool IsReplicaMigratable() override { return false; }
|
||||||
bool IsBroadcast() { return true; }
|
bool IsBroadcast() override { return true; }
|
||||||
static const char* GetChunkName() { return "BitmaskInterestChunk"; }
|
static const char* GetChunkName() { return "BitmaskInterestChunk"; }
|
||||||
|
|
||||||
void OnReplicaActivate(const ReplicaContext& rc) override;
|
void OnReplicaActivate(const ReplicaContext& rc) override;
|
||||||
|
|||||||
Reference in New Issue
Block a user