2012-01-05 16:32:41 +00:00
|
|
|
#ifndef _PAYSAGES_MODIFIERS_H_
|
|
|
|
#define _PAYSAGES_MODIFIERS_H_
|
|
|
|
|
|
|
|
#include <stdio.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-01-29 17:39:56 +00:00
|
|
|
void modifierSave(FILE* f, HeightModifier* modifier);
|
|
|
|
void modifierLoad(FILE* f, 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
|