2019-09-23 07:50:21 +08:00
|
|
|
#ifndef CWMODS_H
|
|
|
|
#define CWMODS_H
|
|
|
|
#include <cstdint>
|
|
|
|
|
2019-10-10 20:18:02 +08:00
|
|
|
#define EXPORT extern "C" __declspec(dllexport) __declspec(noinline)
|
2019-09-23 07:50:21 +08:00
|
|
|
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "IDA/types.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "common/ByteRGBA.h"
|
|
|
|
#include "common/FloatRGBA.h"
|
|
|
|
#include "common/FloatVector3.h"
|
|
|
|
#include "common/IntVector2.h"
|
|
|
|
#include "common/LongVector3.h"
|
|
|
|
|
|
|
|
#include "cube/ChatWidget.h"
|
|
|
|
#include "cube/Client.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
#include "cube/Creature.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "cube/Database.h"
|
|
|
|
#include "cube/Field.h"
|
|
|
|
#include "cube/Game.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
#include "cube/Host.h"
|
2019-10-10 20:18:02 +08:00
|
|
|
#include "cube/Item.h"
|
|
|
|
#include "cube/ItemStack.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "cube/PlasmaHolder.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
#include "cube/Speech.h"
|
2019-10-10 20:18:02 +08:00
|
|
|
#include "cube/SpriteManager.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "cube/World.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
#include "cube/WorldMap.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "cube/Zone.h"
|
|
|
|
#include "cube/constants.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "gfx/Chunk.h"
|
2019-10-10 20:18:02 +08:00
|
|
|
#include "gfx/D3D11Graphics.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
#include "gfx/D3D11Renderer.h"
|
|
|
|
|
2019-10-10 20:18:02 +08:00
|
|
|
#include "msvc/allocator.h"
|
|
|
|
#include "msvc/list.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "msvc/string.h"
|
|
|
|
#include "msvc/vector.h"
|
|
|
|
#include "msvc/wstring.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "plasma/Attribute.h"
|
|
|
|
#include "plasma/ContinuousAttribute.h"
|
|
|
|
#include "plasma/D3D11Engine.h"
|
|
|
|
#include "plasma/DiscreteAttribute.h"
|
|
|
|
#include "plasma/Display.h"
|
|
|
|
#include "plasma/Engine.h"
|
|
|
|
#include "plasma/Keyable.h"
|
|
|
|
#include "plasma/NamedObject.h"
|
|
|
|
#include "plasma/Node.h"
|
|
|
|
#include "plasma/Object.h"
|
|
|
|
#include "plasma/ObjectManager.h"
|
2019-10-10 20:18:02 +08:00
|
|
|
#include "plasma/Vector.h"
|
2019-10-06 04:08:12 +08:00
|
|
|
#include "plasma/Widget.h"
|
2019-09-23 07:50:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
void* CWBase();
|
|
|
|
|
|
|
|
EXPORT void ModPreInitialize();
|
|
|
|
EXPORT int ModMajorVersion();
|
|
|
|
EXPORT int ModMinorVersion();
|
|
|
|
|
|
|
|
void WriteByte(void* location, char val);
|
|
|
|
void WriteFarJMP(void* source, void* destination);
|
|
|
|
|
2019-10-10 20:18:02 +08:00
|
|
|
__declspec(noinline) void* operator new(size_t size);
|
|
|
|
__declspec(noinline) void* operator new[](size_t size);
|
|
|
|
__declspec(noinline) void operator delete(void* ptr) noexcept;
|
|
|
|
__declspec(noinline) void operator delete[](void* ptr) noexcept;
|
|
|
|
|
2019-09-23 07:50:21 +08:00
|
|
|
#endif // CWMODS_H
|