Fix compile for 4.0.

This commit is contained in:
Relintai 2021-02-06 11:50:27 +01:00
parent d0e3f1c759
commit d447fd5364
3 changed files with 22 additions and 2 deletions

View File

@ -1,7 +1,13 @@
#ifndef FASTNOISE_NOISE_PARAMS_H
#define FASTNOISE_NOISE_PARAMS_H
#include "core/version.h"
#if VERSION_MAJOR > 3
#include "core/io/resource.h"
#else
#include "core/resource.h"
#endif
#include "noise.h"

11
noise.h
View File

@ -1,10 +1,17 @@
#ifndef FASTNOISE_NOISE_H
#define FASTNOISE_NOISE_H
#include "core/reference.h"
#include "lib/FastNoise.h"
#include "core/version.h"
#if VERSION_MAJOR > 3
#include "core/object/reference.h"
#include "core/string/ustring.h"
#else
#include "core/reference.h"
#include "core/ustring.h"
#endif
#include "lib/FastNoise.h"
#include "core/version.h"

View File

@ -1,5 +1,12 @@
#include "register_types.h"
#include "core/version.h"
#if VERSION_MAJOR < 4
#include "core/class_db.h"
#else
#include "core/object/class_db.h"
#endif
#include "noise.h"
#include "fastnoise_noise_params.h"