From bd3c974ea1331b70610e1f66a2f8ee56ba6ff042 Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 15 Jan 2019 19:41:58 +0800 Subject: [PATCH] [Server] Trait all API functions as "extern C" --- apps/openmw-mp/Script/Functions/Actors.hpp | 128 +++++++------- apps/openmw-mp/Script/Functions/Books.hpp | 10 +- apps/openmw-mp/Script/Functions/Cells.hpp | 16 +- apps/openmw-mp/Script/Functions/CharClass.hpp | 28 ++-- apps/openmw-mp/Script/Functions/Chat.hpp | 8 +- apps/openmw-mp/Script/Functions/Dialogue.hpp | 14 +- apps/openmw-mp/Script/Functions/Factions.hpp | 26 +-- apps/openmw-mp/Script/Functions/GUI.hpp | 28 ++-- apps/openmw-mp/Script/Functions/Items.hpp | 44 ++--- apps/openmw-mp/Script/Functions/Mechanics.hpp | 34 ++-- .../Script/Functions/Miscellaneous.hpp | 12 +- apps/openmw-mp/Script/Functions/Objects.hpp | 158 +++++++++--------- apps/openmw-mp/Script/Functions/Positions.hpp | 28 ++-- apps/openmw-mp/Script/Functions/Quests.hpp | 34 ++-- .../Script/Functions/RecordsDynamic.hpp | 148 ++++++++-------- apps/openmw-mp/Script/Functions/Server.hpp | 40 +++-- apps/openmw-mp/Script/Functions/Settings.hpp | 18 +- .../openmw-mp/Script/Functions/Shapeshift.hpp | 18 +- apps/openmw-mp/Script/Functions/Spells.hpp | 12 +- apps/openmw-mp/Script/Functions/Stats.hpp | 100 +++++------ apps/openmw-mp/Script/Functions/Timer.hpp | 17 +- .../openmw-mp/Script/Functions/Worldstate.hpp | 80 ++++----- apps/openmw-mp/Script/Platform.hpp | 4 +- 23 files changed, 525 insertions(+), 480 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Actors.hpp b/apps/openmw-mp/Script/Functions/Actors.hpp index ba9c75edf..6915c689a 100644 --- a/apps/openmw-mp/Script/Functions/Actors.hpp +++ b/apps/openmw-mp/Script/Functions/Actors.hpp @@ -1,6 +1,8 @@ #ifndef OPENMW_ACTORAPI_HPP #define OPENMW_ACTORAPI_HPP +#include