openmw-tes3coop/apps/openmw-mp/Script/Functions/Public.h
Koncord 4ca5da5666 [Server] Rework Plugin API, move Lua system to external library
Use LibFFI for Public & Timer APIs
Use "PlayerId" type instead "unsigned short"
Add GetPluginDir() function
2019-02-12 05:29:57 +08:00

20 lines
584 B
C

//
// Created by koncord on 09.12.18.
//
#ifndef OPENMW_PUBLIC_HPP
#define OPENMW_PUBLIC_HPP
#include "../api.h"
#include <stdarg.h>
NAMESPACE_BEGIN(PublicFunctions)
API_FUNCTION void CDECL MakePublic(ScriptFunc _public, const char *name, char ret_type, const char *def) NOEXCEPT;
API_FUNCTION RetType CDECL CallPublic(const char *name, ...) NOEXCEPT;
API_FUNCTION const char *CDECL GetPublicName() NOEXCEPT;
API_FUNCTION const char *GetPublicDefinition(const char *_public);
API_FUNCTION char GetPublicReturnType(const char *_public);
NAMESPACE_END()
#endif