aboutsummaryrefslogtreecommitdiff
path: root/src/serialization.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-16 12:23:19 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-16 12:23:19 +0300
commit29c9d3d5f44ea6bb812a7d66d3ce582a1aeb7557 (patch)
tree487ac8d1bb01a8171cf58ef8905caaebf0632100 /src/serialization.h
parent136657bcc103ee641a7d8702c41d55501c48f245 (diff)
downloadminetest-29c9d3d5f44ea6bb812a7d66d3ce582a1aeb7557.tar.gz
minetest-29c9d3d5f44ea6bb812a7d66d3ce582a1aeb7557.tar.bz2
minetest-29c9d3d5f44ea6bb812a7d66d3ce582a1aeb7557.zip
Implemented MEET_OTHER
Diffstat (limited to 'src/serialization.h')
0 files changed, 0 insertions, 0 deletions
it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "tileanimation.h" #include "util/serialize.h" void TileAnimationParams::serialize(std::ostream &os, u8 tiledef_version) const { writeU8(os, type); if (type == TAT_VERTICAL_FRAMES) { writeU16(os, vertical_frames.aspect_w); writeU16(os, vertical_frames.aspect_h); writeF32(os, vertical_frames.length); } else if (type == TAT_SHEET_2D) { writeU8(os, sheet_2d.frames_w); writeU8(os, sheet_2d.frames_h); writeF32(os, sheet_2d.frame_length); } } void TileAnimationParams::deSerialize(std::istream &is, u8 tiledef_version)