paysages3d/src/definition/LegacyLayer.cpp

33 lines
587 B
C++
Raw Normal View History

2013-10-31 16:59:18 +00:00
#include "LegacyLayer.h"
LegacyLayer::LegacyLayer(BaseDefinition* parent, LayerType* type):
BaseDefinition(parent), type(*type)
{
legacy = type->callback_create();
}
LegacyLayer::~LegacyLayer()
{
type.callback_delete(legacy);
}
void LegacyLayer::save(PackStream* pack)
{
type.callback_save(pack, legacy);
}
void LegacyLayer::load(PackStream* pack)
{
type.callback_load(pack, legacy);
}
void LegacyLayer::copy(LegacyLayer* destination)
{
type.callback_copy(legacy, destination->legacy);
}
void LegacyLayer::validate()
{
type.callback_validate(legacy);
}