mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-11 15:17:17 +00:00
30 lines
576 B
C++
30 lines
576 B
C++
#pragma once
|
|
|
|
#include <format>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class TextureHolder;
|
|
|
|
class StitchSlot {
|
|
private:
|
|
const int originX;
|
|
const int originY;
|
|
|
|
const int width;
|
|
const int height;
|
|
std::vector<StitchSlot*>* subSlots;
|
|
TextureHolder* textureHolder;
|
|
|
|
public:
|
|
StitchSlot(int originX, int originY, int width, int height);
|
|
|
|
TextureHolder* getHolder();
|
|
int getX();
|
|
int getY();
|
|
bool add(TextureHolder* textureHolder);
|
|
void collectAssignments(std::vector<StitchSlot*>* result);
|
|
|
|
//@Override
|
|
std::string toString();
|
|
}; |