This commit is contained in:
2023-01-03 23:13:31 +00:00
parent 7ce8cd22ad
commit 740077fae3
11 changed files with 57 additions and 155 deletions

View File

@@ -76,12 +76,12 @@ void comp_delete(struct component *c)
c->ref->delete(c->data);
}
void comp_init(struct component *c)
void comp_init(struct component *c, struct gameobject *go)
{
c->ref->init(c->data);
c->ref->init(c->data, go);
}
void comp_io(struct component *c, int read)
void comp_io(struct component *c, FILE *f, int read)
{
c->ref->io(c->data, read);
c->ref->io(c->data, f, read);
}