- [NEW] actor::duplicate()
- [NEW] actor::setUniqueName() - [CHG] Ara si actor::templates::add() detecta que ja hi ha una plantilla amb eixe nom, el que fa es actualitzar-la
This commit is contained in:
@@ -90,10 +90,14 @@ 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 *duplicate(actor_t *act);
|
||||
|
||||
actor_t *createFromTemplate(const char *name);
|
||||
|
||||
actor_t *createFromFile(char **buffer);
|
||||
|
||||
void setUniqueName(actor_t *act);
|
||||
|
||||
void saveToFile(FILE *f, actor_t *act);
|
||||
|
||||
void setDirty(actor_t *act, const bool force=false);
|
||||
@@ -129,6 +133,6 @@ namespace actor
|
||||
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);
|
||||
void add(actor_t *act);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user