4034195bdc
This allows the EMotionFX runtime to compile with `/we4267` enabled, which emits a warning when converting from `size_t` to a smaller type. All tests for the runtime have been updated accordingly, and they pass. In instances where a range-for loop could be used, or a std algorithm, that was used instead of using `size_t numItems = vec.size()` and a for loop. Casts to `uint32` were removed where possible. Some places remain, like in the file formats. Signed-off-by: Chris Burel <burelc@amazon.com>
23 lines
839 B
C++
23 lines
839 B
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
namespace EMotionFX
|
|
{
|
|
class AnimGraphNode
|
|
: public AnimGraphObject
|
|
{
|
|
public:
|
|
AZ_RTTI(AnimGraphNode, "{7F1C0E1D-4D32-4A6D-963C-20193EA28F95}", AnimGraphObject)
|
|
|
|
MOCK_CONST_METHOD1(CollectOutgoingConnections, void(AZStd::vector<AZStd::pair<BlendTreeConnection*, AnimGraphNode*>>& outConnections));
|
|
MOCK_CONST_METHOD2(CollectOutgoingConnections, void(AZStd::vector<AZStd::pair<BlendTreeConnection*, AnimGraphNode*>>& outConnections, const size_t portIndex));
|
|
|
|
MOCK_CONST_METHOD1(FindOutputPortIndex, size_t(const AZStd::string& name));
|
|
};
|
|
} // namespace EMotionFX
|