mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
17 lines
328 B
C
17 lines
328 B
C
#include <spine/Attachment.h>
|
|
#include <spine/util.h>
|
|
|
|
void _Attachment_init (Attachment* self, const char* name, int type) {
|
|
MALLOC_STR(self->name, name);
|
|
self->type = type;
|
|
}
|
|
|
|
void _Attachment_deinit (Attachment* self) {
|
|
FREE(self->name)
|
|
FREE(self)
|
|
}
|
|
|
|
void Attachment_dispose (Attachment* self) {
|
|
self->_dispose(self);
|
|
}
|