diff options
author | Thomas Fach-Pedersen | 2018-03-17 16:14:48 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-03-24 17:07:06 +0100 |
commit | 2a646f8cc287a98f90e561ce8072c2af4322fd22 (patch) | |
tree | 8511469fd92c125a91c71b246bf122c45b425030 /engines/bladerunner/combat.cpp | |
parent | a70c59f90d43ce31c548c68416bf0ab5385f15a9 (diff) | |
download | scummvm-rg350-2a646f8cc287a98f90e561ce8072c2af4322fd22.tar.gz scummvm-rg350-2a646f8cc287a98f90e561ce8072c2af4322fd22.tar.bz2 scummvm-rg350-2a646f8cc287a98f90e561ce8072c2af4322fd22.zip |
BLADERUNNER: Save game methods
Diffstat (limited to 'engines/bladerunner/combat.cpp')
-rw-r--r-- | engines/bladerunner/combat.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/bladerunner/combat.cpp b/engines/bladerunner/combat.cpp index ef7a589456..eefcebccba 100644 --- a/engines/bladerunner/combat.cpp +++ b/engines/bladerunner/combat.cpp @@ -28,6 +28,7 @@ #include "bladerunner/game_constants.h" #include "bladerunner/game_info.h" #include "bladerunner/movement_track.h" +#include "bladerunner/savefile.h" #include "bladerunner/scene_objects.h" #include "bladerunner/settings.h" @@ -204,4 +205,15 @@ int Combat::findCoverWaypoint(int waypointType, int actorId, int enemyId) const return result; } +void Combat::save(SaveFile &f) { + f.write(_active); + f.write(_enabled); + for (int i = 0; i != 9; ++i) { + f.write(_hitSoundId[i]); + } + for (int i = 0; i != 9; ++i) { + f.write(_missSoundId[i]); + } +} + } // End of namespace BladeRunner |