Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
ECSManager.h
Go to the documentation of this file.
1/* Copyright (c) 2018 DIVIDE-Studio
2Copyright (c) 2009 Ionut Cava
3
4This file is part of DIVIDE Framework.
5
6Permission is hereby granted, free of charge, to any person obtaining a copy of
7this software
8and associated documentation files (the "Software"), to deal in the Software
9without restriction,
10including without limitation the rights to use, copy, modify, merge, publish,
11distribute, sublicense,
12and/or sell copies of the Software, and to permit persons to whom the Software
13is furnished to do so,
14subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in all
17copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
22PARTICULAR PURPOSE AND NONINFRINGEMENT.
23IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
24DAMAGES OR OTHER LIABILITY,
25WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26CONNECTION WITH THE SOFTWARE
27OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
29*/
30
31#pragma once
32#ifndef DVD_ECS_MANAGER_H_
33#define DVD_ECS_MANAGER_H_
34
35#include "ECS/Engine.h"
37
38namespace Divide {
39 class ByteBuffer;
40 class SceneGraphNode;
41 class ECSManager final : public PlatformContextComponent {
42 public:
44
45 [[nodiscard]] bool saveCache(const SceneGraphNode* sgn, ByteBuffer& outputBuffer) const;
46 [[nodiscard]] bool loadCache(SceneGraphNode* sgn, ByteBuffer& inputBuffer) const;
47
49 };
50
52
53} //namespace Divide
54
55#endif //DVD_ECS_MANAGER_H_
#define FWD_DECLARE_MANAGED_CLASS(T)
bool saveCache(const SceneGraphNode *sgn, ByteBuffer &outputBuffer) const
Definition: ECSManager.cpp:84
bool loadCache(SceneGraphNode *sgn, ByteBuffer &inputBuffer) const
Definition: ECSManager.cpp:102
REFERENCE_R(ECS::ECSEngine, ecsEngine)
PlatformContext & context() noexcept
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7