Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
BoundsSystem.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy of
8
this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the Software
14
is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in all
18
copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_BOUNDS_SYSTEM_H_
34
#define DVD_BOUNDS_SYSTEM_H_
35
36
#include "
ECSSystem.h
"
37
38
#include "
Core/Headers/PlatformContextComponent.h
"
39
#include "
ECS/Components/Headers/BoundsComponent.h
"
40
41
namespace
Divide
{
42
43
class
BoundsSystem
final :
public
PlatformContextComponent
,
44
public
ECSSystem
<BoundsSystem, BoundsComponent> {
45
using
Parent
=
ECSSystem<BoundsSystem, BoundsComponent>
;
46
public
:
47
BoundsSystem
(
ECS::ECSEngine
& parentEngine,
PlatformContext
&
context
);
48
virtual
~BoundsSystem
()
override
;
49
50
void
PreUpdate
(
F32
dt)
override
;
51
void
Update
(
F32
dt)
override
;
52
void
PostUpdate
(
F32
dt)
override
;
53
};
54
}
55
56
#endif
//DVD_BOUNDS_SYSTEM_H_
BoundsComponent.h
ECSSystem.h
PlatformContextComponent.h
Divide::BoundsSystem
Definition:
BoundsSystem.h:44
Divide::BoundsSystem::PostUpdate
void PostUpdate(F32 dt) override
Definition:
BoundsSystem.cpp:61
Divide::BoundsSystem::~BoundsSystem
virtual ~BoundsSystem() override
Definition:
BoundsSystem.cpp:20
Divide::BoundsSystem::PreUpdate
void PreUpdate(F32 dt) override
Definition:
BoundsSystem.cpp:25
Divide::BoundsSystem::Update
void Update(F32 dt) override
Definition:
BoundsSystem.cpp:43
Divide::ECSSystem
Definition:
ECSSystem.h:70
Divide::PlatformContextComponent
Definition:
PlatformContextComponent.h:39
Divide::PlatformContextComponent::context
PlatformContext & context() noexcept
Definition:
PlatformContextComponent.h:48
Divide::PlatformContext
Definition:
PlatformContext.h:71
ECS::ECSEngine
Definition:
Engine.h:37
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::F32
float F32
Definition:
PlatformDataTypes.h:82
Source
ECS
Systems
Headers
BoundsSystem.h
Generated on Fri May 17 2024 16:59:51 for Divide Framework by
1.9.6