forked from teamnwah/openmw-tes3coop
[Server] Make script functions more consistent
This commit is contained in:
parent
a24ef3a25e
commit
1b714fbfa7
10 changed files with 29 additions and 27 deletions
|
@ -74,10 +74,12 @@ set(SERVER
|
||||||
Script/Script.cpp Script/ScriptFunction.cpp
|
Script/Script.cpp Script/ScriptFunction.cpp
|
||||||
Script/ScriptFunctions.cpp
|
Script/ScriptFunctions.cpp
|
||||||
|
|
||||||
|
Script/Functions/Actors.cpp Script/Functions/World.cpp Script/Functions/Miscellaneous.cpp
|
||||||
|
|
||||||
Script/Functions/CharClass.cpp Script/Functions/Chat.cpp Script/Functions/GUI.cpp
|
Script/Functions/CharClass.cpp Script/Functions/Chat.cpp Script/Functions/GUI.cpp
|
||||||
Script/Functions/Items.cpp Script/Functions/Quests.cpp Script/Functions/Stats.cpp
|
Script/Functions/Items.cpp Script/Functions/Quests.cpp Script/Functions/Stats.cpp
|
||||||
Script/Functions/Spells.cpp Script/Functions/Timer.cpp Script/Functions/Positions.cpp
|
Script/Functions/Spells.cpp Script/Functions/Timer.cpp Script/Functions/Positions.cpp
|
||||||
Script/Functions/Cells.cpp Script/Functions/World.cpp Script/Functions/Miscellaneous.cpp
|
Script/Functions/Cells.cpp
|
||||||
|
|
||||||
ProcessorInitializer.cpp PlayerProcessor.cpp ActorProcessor.cpp WorldProcessor.cpp
|
ProcessorInitializer.cpp PlayerProcessor.cpp ActorProcessor.cpp WorldProcessor.cpp
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef OPENMW_ACTORFUNCTIONS_HPP
|
#ifndef OPENMW_ACTORAPI_HPP
|
||||||
#define OPENMW_ACTORFUNCTIONS_HPP
|
#define OPENMW_ACTORAPI_HPP
|
||||||
|
|
||||||
#define ACTORAPI \
|
#define ACTORAPI \
|
||||||
{"InitActorList", ActorFunctions::InitActorList},\
|
{"InitActorList", ActorFunctions::InitActorList},\
|
||||||
|
@ -16,4 +16,4 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif //OPENMW_ACTORFUNCTIONS_HPP
|
#endif //OPENMW_ACTORAPI_HPP
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
// Created by koncord on 29.08.16.
|
// Created by koncord on 29.08.16.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef OPENMW_CHARCLASS_HPP
|
#ifndef OPENMW_CHARCLASSAPI_HPP
|
||||||
#define OPENMW_CHARCLASS_HPP
|
#define OPENMW_CHARCLASSAPI_HPP
|
||||||
|
|
||||||
#include "../Types.hpp"
|
#include "../Types.hpp"
|
||||||
|
|
||||||
|
@ -79,4 +79,4 @@ public:
|
||||||
static void SendClass(unsigned short pid) noexcept;
|
static void SendClass(unsigned short pid) noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_CHARCLASS_HPP
|
#endif //OPENMW_CHARCLASSAPI_HPP
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
// Created by koncord on 30.08.16.
|
// Created by koncord on 30.08.16.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef OPENMW_GUI_HPP
|
#ifndef OPENMW_GUIAPI_HPP
|
||||||
#define OPENMW_GUI_HPP
|
#define OPENMW_GUIAPI_HPP
|
||||||
|
|
||||||
#define GUIAPI \
|
#define GUIAPI \
|
||||||
{"MessageBox", GUIFunctions::_MessageBox},\
|
{"MessageBox", GUIFunctions::_MessageBox},\
|
||||||
|
@ -32,4 +32,4 @@ public:
|
||||||
static void SetConsoleAllow(unsigned short pid, bool state);
|
static void SetConsoleAllow(unsigned short pid, bool state);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_GUI_HPP
|
#endif //OPENMW_GUIAPI_HPP
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
// Created by koncord on 30.08.16.
|
// Created by koncord on 30.08.16.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef OPENMW_ITEMS_HPP
|
#ifndef OPENMW_ITEMAPI_HPP
|
||||||
#define OPENMW_ITEMS_HPP
|
#define OPENMW_ITEMAPI_HPP
|
||||||
|
|
||||||
#define ITEMAPI \
|
#define ITEMAPI \
|
||||||
{"GetEquipmentSize", ItemFunctions::GetEquipmentSize},\
|
{"GetEquipmentSize", ItemFunctions::GetEquipmentSize},\
|
||||||
|
@ -59,4 +59,4 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_ITEMS_HPP
|
#endif //OPENMW_ITEMAPI_HPP
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef OPENMW_QUESTS_HPP
|
#ifndef OPENMW_QUESTAPI_HPP
|
||||||
#define OPENMW_QUESTS_HPP
|
#define OPENMW_QUESTAPI_HPP
|
||||||
|
|
||||||
#define QUESTAPI \
|
#define QUESTAPI \
|
||||||
{"GetJournalChangesSize", QuestFunctions::GetJournalChangesSize},\
|
{"GetJournalChangesSize", QuestFunctions::GetJournalChangesSize},\
|
||||||
|
@ -31,4 +31,4 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_QUESTS_HPP
|
#endif //OPENMW_QUESTAPI_HPP
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef OPENMW_SPELLS_HPP
|
#ifndef OPENMW_SPELLAPI_HPP
|
||||||
#define OPENMW_SPELLS_HPP
|
#define OPENMW_SPELLAPI_HPP
|
||||||
|
|
||||||
#define SPELLAPI \
|
#define SPELLAPI \
|
||||||
{"GetSpellbookChangesSize", SpellFunctions::GetSpellbookChangesSize},\
|
{"GetSpellbookChangesSize", SpellFunctions::GetSpellbookChangesSize},\
|
||||||
|
@ -31,4 +31,4 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_SPELLS_HPP
|
#endif //OPENMW_SPELLAPI_HPP
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
// Created by koncord on 30.08.16.
|
// Created by koncord on 30.08.16.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef OPENMW_STATS_HPP
|
#ifndef OPENMW_STATAPI_HPP
|
||||||
#define OPENMW_STATS_HPP
|
#define OPENMW_STATAPI_HPP
|
||||||
|
|
||||||
#define STATSAPI \
|
#define STATAPI \
|
||||||
{"GetName", StatsFunctions::GetName},\
|
{"GetName", StatsFunctions::GetName},\
|
||||||
{"SetName", StatsFunctions::SetName},\
|
{"SetName", StatsFunctions::SetName},\
|
||||||
\
|
\
|
||||||
|
@ -148,4 +148,4 @@ public:
|
||||||
static void SendLevel(unsigned short pid) noexcept;
|
static void SendLevel(unsigned short pid) noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OPENMW_STATS_HPP
|
#endif //OPENMW_STATAPI_HPP
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef OPENMW_WORLD_HPP
|
#ifndef OPENMW_WORLDAPI_HPP
|
||||||
#define OPENMW_WORLD_HPP
|
#define OPENMW_WORLDAPI_HPP
|
||||||
|
|
||||||
#define WORLDAPI \
|
#define WORLDAPI \
|
||||||
{"InitScriptEvent", WorldFunctions::InitScriptEvent},\
|
{"InitScriptEvent", WorldFunctions::InitScriptEvent},\
|
||||||
|
@ -134,4 +134,4 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif //OPENMW_WORLD_HPP
|
#endif //OPENMW_WORLDAPI_HPP
|
||||||
|
|
|
@ -95,7 +95,7 @@ public:
|
||||||
|
|
||||||
POSITIONAPI,
|
POSITIONAPI,
|
||||||
CELLAPI,
|
CELLAPI,
|
||||||
STATSAPI,
|
STATAPI,
|
||||||
ITEMAPI,
|
ITEMAPI,
|
||||||
QUESTAPI,
|
QUESTAPI,
|
||||||
SPELLAPI,
|
SPELLAPI,
|
||||||
|
|
Loading…
Reference in a new issue