- Ja carrega habitació i actors de arxiu

- Els templates deurien funcionar quan s'active la funcionalitat
This commit is contained in:
2024-06-05 20:46:15 +02:00
parent 9dc27d7e8b
commit 30e908c8a9
6 changed files with 167 additions and 52 deletions

View File

@@ -86,7 +86,7 @@ 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);
void createFromFile(char **buffer);
actor_t *createFromFile(char **buffer);
void setDirty(actor_t *act, const bool force=false);
@@ -119,6 +119,8 @@ namespace actor
void save();
const int size();
actor_t *get(const int index);
actor_t *getByName(const char *name);
void copy(actor_t *dest, actor_t *source);
void add(actor_t *actor);
}
}