}
Door::Door(int x, int y, std::string sector, std::string spawnpoint)
}
Door::Door(int x, int y, std::string sector, std::string spawnpoint)
writer.write_float("y", bbox.p1.y);
writer.write_float("width", bbox.get_width());
writer.write_float("height", bbox.get_height());
writer.write_float("y", bbox.p1.y);
writer.write_float("width", bbox.get_width());
writer.write_float("height", bbox.get_height());
writer.write_string("sector", target_sector);
writer.write_string("spawnpoint", target_spawnpoint);
writer.write_string("sector", target_sector);
writer.write_string("spawnpoint", target_spawnpoint);
if (stay_open_timer.check()) {
state = CLOSING;
sprite->set_action("closing", 1);
}
break;
case CLOSING:
if (stay_open_timer.check()) {
state = CLOSING;
sprite->set_action("closing", 1);
}
break;
case CLOSING: