using luabridge, binding MapInfo type and calling update

This commit is contained in:
Bluub
2021-06-09 12:08:40 +02:00
parent 92a4862041
commit 41ff375d6a
9 changed files with 7897 additions and 37 deletions

21
sources/Map/MapInfo.cpp Normal file
View File

@@ -0,0 +1,21 @@
//
// Created by Louis Auzuret 09/06/21
//
#include "MapInfo.hpp"
namespace BBM
{
MapInfo::MapInfo(Vector3f pos, MapGenerator::BlockType type)
: x(pos.x), y(pos.y), z(pos.z), type(type)
{ }
MapInfo &MapInfo::operator=(MapInfo &other)
{
this->x = other.x;
this->y = other.y;
this->z = other.z;
this->type = other.type;
return *this;
}
}