2012-01-05 16:32:41 +00:00
|
|
|
#ifndef _PAYSAGES_MODIFIERS_H_
|
|
|
|
#define _PAYSAGES_MODIFIERS_H_
|
|
|
|
|
2012-04-22 17:12:39 +00:00
|
|
|
#include "pack.h"
|
2012-01-29 17:39:56 +00:00
|
|
|
#include "zone.h"
|
2012-01-05 16:32:41 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct HeightModifier HeightModifier;
|
|
|
|
|
|
|
|
HeightModifier* modifierCreate();
|
|
|
|
HeightModifier* modifierCreateCopy(HeightModifier* source);
|
|
|
|
void modifierDelete(HeightModifier* modifier);
|
2012-04-22 17:12:39 +00:00
|
|
|
void modifierSave(PackStream* stream, HeightModifier* modifier);
|
|
|
|
void modifierLoad(PackStream* stream, HeightModifier* modifier);
|
2012-01-05 16:32:41 +00:00
|
|
|
Zone* modifierGetZone(HeightModifier* modifier);
|
|
|
|
void modifierActionAddValue(HeightModifier* modifier, double value);
|
|
|
|
void modifierActionFixValue(HeightModifier* modifier, double value);
|
|
|
|
Vector3 modifierApply(HeightModifier* modifier, Vector3 location);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|