Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
Level.h
Go to the documentation of this file.
1
/* Level.h
2
Contains multiple sectors and manages them.
3
*/
4
#pragma once
5
6
#include "
Sector.h
"
7
#include <vector>
8
#include <memory>
9
#include <string>
10
#include <iostream>
11
12
class
Level
13
{
14
public
:
15
std::string
name
;
16
std::vector<std::unique_ptr<Sector>>
sectors
;
17
18
Level
(
const
std::string&
n
=
"Level"
) :
name
(
n
)
19
{
20
SYSTEM_LOG
<<
"Level '"
<<
name
<<
"' created\n"
;
21
}
22
~Level
()
23
{
24
SYSTEM_LOG
<<
"Level '"
<<
name
<<
"' destroyed\n"
;
25
}
26
27
void
AddSector
(std::unique_ptr<Sector>
s
)
28
{
29
sectors
.push_back(std::move(
s
));
30
}
31
};
GetComponentTypeID_Static
ComponentTypeID GetComponentTypeID_Static()
Definition
ECS_Entity.h:56
Sector.h
Level
Definition
Level.h:13
Level::~Level
~Level()
Definition
Level.h:22
Level::Level
Level(const std::string &n="Level")
Definition
Level.h:18
Level::AddSector
void AddSector(std::unique_ptr< Sector > s)
Definition
Level.h:27
Level::name
std::string name
Definition
Level.h:15
Level::sectors
std::vector< std::unique_ptr< Sector > > sectors
Definition
Level.h:16
SYSTEM_LOG
#define SYSTEM_LOG
Definition
system_utils.h:23
Generated on Tue Feb 17 2026 13:49:10 for Olympe Engine by
1.9.8