WHY_CPP  0.1
sprites_holder.h
1 #pragma once
2 
3 #include <whycpp/types.h>
4 #include <memory>
5 #include <vector>
6 #include "../i_object.h"
7 #include "../sprite.h"
8 
9 class SpritesHolder : public IObject {
10  std::vector<std::unique_ptr<Sprite>> sprites_;
11 
12  public:
13  i32 AppendSprite(Sprite *sprite);
14  Sprite *GetSprite(i32 index) const;
15  ~SpritesHolder() override;
16 };
Definition: sprite.h:8