summaryrefslogtreecommitdiffstats
path: root/src/Block.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 04:05:19 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 04:05:19 +0200
commitb4f6cd5dc161f89f7ca14f2e5e0654f977971fdb (patch)
tree077918a043190158e9cec9f04ac41acfe32ab549 /src/Block.cpp
parentReplaced sdl2_image with stb_image (diff)
downloadAltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar.gz
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar.bz2
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar.lz
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar.xz
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.tar.zst
AltCraft-b4f6cd5dc161f89f7ca14f2e5e0654f977971fdb.zip
Diffstat (limited to '')
-rw-r--r--src/Block.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Block.cpp b/src/Block.cpp
index 41199de..56fa371 100644
--- a/src/Block.cpp
+++ b/src/Block.cpp
@@ -1,25 +1,5 @@
#include "Block.hpp"
-#include <string>
-
-Block::~Block() {}
-
-Block::Block(unsigned short id, unsigned char state,
- unsigned char light, unsigned char sky)
- : id(id), state(state), light(light), sky (sky) {}
-
-Block::Block() : id(0), state(0), light(0), sky(0) {}
-
-bool operator==(const BlockId& lhs, const BlockId &rhs) {
- return (lhs.id == rhs.id) && (lhs.state == rhs.state);
-}
-
-bool operator<(const BlockId& lhs, const BlockId &rhs) {
- if (lhs.id < rhs.id)
- return true;
- return lhs.state < rhs.state;
-}
-
std::pair<std::string, std::string> TransformBlockIdToBlockStateName(BlockId blockId) {
switch (blockId.id) {
case 1: {