summaryrefslogtreecommitdiff
path: root/game/scenary/plant.cpp
blob: 678d4a715a3d9033c4f7e56e9f5e60cf1dd5390e (plain)
1
2
3
4
5
6
7
#include "plant.h"

Plant::Plant(std::shared_ptr<const Foliage> type, Location position) :
	type {std::move(type)},
	location {this->type->instances.acquire(glm::translate(position.pos) * rotate_ypr(position.rot))}
{
}