• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 
17 #if !defined(SCENE_SRC_ECS_COMPONENT_ENTITY_OWNER_COMPONENT_H) || defined(IMPLEMENT_MANAGER)
18 #define SCENE_SRC_ECS_COMPONENT_ENTITY_OWNER_COMPONENT_H
19 
20 #if !defined(IMPLEMENT_MANAGER)
21 #include <scene/base/namespace.h>
22 
23 #include <core/ecs/component_struct_macros.h>
24 #include <core/ecs/entity_reference.h>
25 #include <core/ecs/intf_component_manager.h>
26 
27 SCENE_BEGIN_NAMESPACE()
28 #endif
29 
30 BEGIN_COMPONENT(IEntityOwnerComponentManager, EntityOwnerComponent)
31     /** Owned entity. */
32     DEFINE_PROPERTY(CORE_NS::EntityReference, entity, "Entity", 0, )
33 END_COMPONENT(IEntityOwnerComponentManager, EntityOwnerComponent, "aa74aebf-58d5-46bf-b6f2-bdcb55274e9e")
34 #if !defined(IMPLEMENT_MANAGER)
35 SCENE_END_NAMESPACE()
36 #endif
37 
38 #endif
39