Page MenuHomePhabricator (Chris)

System.h
No OneTemporary

Authored By
Unknown
Size
548 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"
#include "GameData.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::shared_ptr<Entity>> *entities, GameData & gameData)=0;
};
#endif //SDL2_GAME_SYSTEM_H

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 8:15 PM (23 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137643
Default Alt Text
System.h (548 B)

Event Timeline