Save type of destructable and exit.

This commit is contained in:
Steve 2018-03-07 07:49:24 +00:00
parent baabbbe31c
commit 009bb74a95
2 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,7 @@ static void save(cJSON *root)
s = (Structure*)self;
cJSON_AddStringToObject(root, "type", "Destructable");
cJSON_AddNumberToObject(root, "health", s->health);
cJSON_AddNumberToObject(root, "healthMax", s->healthMax);
cJSON_AddStringToObject(root, "spriteName", s->spriteName);

View File

@ -162,5 +162,6 @@ static void save(cJSON *root)
s = (Structure*)self;
cJSON_AddStringToObject(root, "type", "Exit");
cJSON_AddNumberToObject(root, "active", s->active);
}