Created
December 30, 2015 13:46
-
-
Save pmiddend/c2f3abc8b096692ac11b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fcppt::optional<level_actor> | |
| load_actor(std::istream &s) | |
| { | |
| return | |
| fcppt::optional_apply( | |
| [](level_actor::id_type const _id,level_actor::pos_type const _pos_x,level_actor::pos_type const _pos_y) { return level_actor(_id,_pos_x,_pos_y); }), | |
| fcppt::io::read<level_actor::id_type>(s,fcppt::endianness::format::little), | |
| fcppt::io::read<level_actor::pos_type>(s,fcppt::endianness::format::little), | |
| fcppt::io::read<level_actor::pos_type>(s,fcppt::endianness::format::little)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment