mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-07 05:40:40 +00:00
using luabridge, binding MapInfo type and calling update
This commit is contained in:
21
sources/Map/MapInfo.cpp
Normal file
21
sources/Map/MapInfo.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user