mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 18:33:39 +00:00
26 lines
522 B
C++
26 lines
522 B
C++
#pragma once
|
|
|
|
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::wstring toString();
|
|
}; |