You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
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
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
|
|
|
|
namespace UnitTest
|
|
{
|
|
class PrefabTestComponent
|
|
: public AzToolsFramework::Components::EditorComponentBase
|
|
{
|
|
public:
|
|
AZ_EDITOR_COMPONENT(PrefabTestComponent, "{C5FCF40A-FAEC-473C-BFAF-68A66DC45B33}");
|
|
|
|
PrefabTestComponent() = default;
|
|
explicit PrefabTestComponent(bool boolProperty);
|
|
|
|
static void Reflect(AZ::ReflectContext* reflection);
|
|
|
|
bool m_boolProperty = false;
|
|
int m_intProperty = 0;
|
|
AZ::EntityId m_entityIdProperty;
|
|
};
|
|
|
|
class UnReflectedType
|
|
{
|
|
public:
|
|
AZ_TYPE_INFO(UnReflectedType, "{FB65262C-CE9A-45CA-99EB-4DDCB19B32DB}");
|
|
int m_unReflectedInt = 42;
|
|
};
|
|
|
|
class PrefabTestComponentWithUnReflectedTypeMember
|
|
: public AzToolsFramework::Components::EditorComponentBase
|
|
{
|
|
public:
|
|
AZ_EDITOR_COMPONENT(PrefabTestComponentWithUnReflectedTypeMember, "{726281E1-8E47-46AB-8018-D3F4BA823D74}");
|
|
static void Reflect(AZ::ReflectContext* reflection);
|
|
|
|
UnReflectedType m_unReflectedType;
|
|
int m_reflectedType = 52;
|
|
};
|
|
}
|