- Guardat de actor a arxiu

- Creació de actor desde plantilla
This commit is contained in:
2024-06-10 13:04:06 +02:00
parent 30e908c8a9
commit edc88eec89
2 changed files with 77 additions and 58 deletions

View File

@@ -86,8 +86,12 @@ namespace actor
// Torna un nou actor
actor_t *create(std::string name, vec3_t p, vec3_t s, std::string bmp, SDL_Rect r, SDL_Point o);
actor_t *createFromTemplate(const char *name);
actor_t *createFromFile(char **buffer);
void saveToFile(FILE *f, actor_t *act);
void setDirty(actor_t *act, const bool force=false);
void select(actor_t *act);