#ifndef SPINE_SLOT_H_
#define SPINE_SLOT_H_
#include <spine/Bone.h>
#include <spine/Attachment.h>
#include <spine/SlotData.h>
namespace cocos2d { namespace extension {
struct Skeleton;
typedef struct Slot {
SlotData* const data;
struct Skeleton* const skeleton;
Bone* const bone;
float r, g, b, a;
Attachment* const attachment;
} Slot;
Slot* Slot_create (SlotData* data, struct Skeleton* skeleton, Bone* bone);
void Slot_dispose (Slot* self);
/* @param attachment May be 0 to clear the attachment for the slot. */
void Slot_setAttachment (Slot* self, Attachment* attachment);
void Slot_setAttachmentTime (Slot* self, float time);
float Slot_getAttachmentTime (const Slot* self);
void Slot_setToSetupPose (Slot* self);
}} // namespace cocos2d { namespace extension {
#endif /* SPINE_SLOT_H_ */