Page MenuHomePhabricator (Chris)

System.h
No OneTemporary

Authored By
Unknown
Size
505 B
Referenced Files
None
Subscribers
None

System.h

//
// Created by Ido Mozes on 23/06/2019.
//
#ifndef SDL2_GAME_SYSTEM_H
#define SDL2_GAME_SYSTEM_H
#include <initializer_list>
#include <vector>
#include <cmath>
#include "Entity.h"
constexpr uint64_t createMask( std::initializer_list<int> types) noexcept {
uint64_t mask = 0;
for (int bit : types) {
mask |= (uint64_t) pow(2, bit);
}
return mask;
}
class System{
public:
virtual void update(std::vector<std::unique_ptr<Entity>> &entities)=0;
};
#endif //SDL2_GAME_SYSTEM_H

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 6:17 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
134817
Default Alt Text
System.h (505 B)

Event Timeline