ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 02 00 00 00 02 00 08 06 00 00 00 f4 78 d4 | .PNG........IHDR..............x. |
0020 | fa 00 00 00 06 62 4b 47 44 00 ff 00 ff 00 ff a0 bd a7 93 00 00 00 09 70 48 59 73 00 00 0b 13 00 | .....bKGD..............pHYs..... |
0040 | 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 e0 04 0a 12 01 3a 80 18 68 6b 00 00 20 00 49 | ............tIME......:..hk....I |
0060 | 44 41 54 78 da ec dd db 6f 9c f7 75 ff fb cf fa 3e 73 e0 90 22 25 51 a2 ac f3 21 4e 14 c5 8e 63 | DATx....o..u....>s.."%Q...!N...c |
0080 | 27 45 ed 66 ff 50 34 bd eb 5d 81 02 ce 6f ef 7f 40 01 5a a0 0d d0 3f 40 a3 3f a0 40 9a 8b 00 f6 | 'E.f.P4..]...o..@.Z...?@.?.@.... |
00a0 | 6d 2f f6 de f5 a5 83 f6 26 40 04 04 3b 75 92 ba b6 23 9f a2 c4 96 64 9d 4d 91 12 4f 22 67 e6 79 | m/......&@..;u...#....d.M..O"g.y |
00c0 | be 6b 5f cc 33 f4 90 e2 61 86 e2 61 86 7c bf 00 c1 b6 24 eb 30 24 67 ad ef fa ae b5 1e 13 80 9e | .k_.3...a..a.|....$.0$g......... |
00e0 | e7 ee f6 d6 5b 6f 85 b1 b1 31 bb 76 ed 9a 6d c6 af f9 a3 1f fd a8 2e 49 6f bc f1 46 69 33 ff ac | ....[o...1.v..m........Io..Fi3.. |
0100 | f7 ee dd 73 49 b1 5a ad ba 24 e7 a3 07 f4 26 e3 25 00 7a 3b b0 d7/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
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.
*/
#pragma once
#include <string>
#include "irrlichttypes_bloated.h"
#include <iostream>
#include <map>
#include <vector>
#include "util/Optional.h"
struct ObjectProperties
{
u16 hp_max = 1;
u16 breath_max = 0;
bool physical = false;
bool collideWithObjects = true;
// Values are BS=1
aabb3f collisionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f);
aabb3f selectionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f);
bool pointable = true;
std::string visual = "sprite";
std::string mesh = "";
v3f visual_size = v3f(1, 1, 1);
std::vector<std::string> textures;
std::string damage_texture_modifier = float automatic_rotate = 0.0f;
bool automatic_face_movement_dir = false;
f32 automatic_face_movement_dir_offset = 0.0f;
bool backface_culling = true;
s8 glow = 0;
std::string nametag = "";
video::SColor nametag_color = video::SColor(255, 255, 255, 255);
Optional<video::SColor> nametag_bgcolor = nullopt;
f32 automatic_face_movement_max_rotation_per_sec = -1.0f;
std::string infotext;
//! For dropped items, this contains item information.
std::string wield_item;
bool static_save = true;
float eye_height = 1.625f;
float zoom_fov = 0.0f;
bool use_texture_alpha = false;
bool shaded = true;
bool show_on_minimap = false;
ObjectProperties();
std::string dump();
// check limits of some important properties (strings) that'd cause exceptions later on
bool validate();
void serialize(std::ostream &os) const;
void deSerialize(std::istream &is);
};
|