1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-10-31 21:05:38 +01:00
GiantsTools/Sdk/Include/Core/Public/IGameService.h

25 lines
497 B
C
Raw Normal View History

2021-01-24 00:40:09 +01:00
#pragma once
#ifndef DECLSPEC_UUID
#if (_MSC_VER >= 1100) && defined(__cplusplus)
#define DECLSPEC_UUID(x) __declspec(uuid(x))
#else
#define DECLSPEC_UUID(x)
#endif
#endif
#define DEFINE_SERVICE(iid, iface) \
struct DECLSPEC_UUID(iid) iface; \
struct iface : IGameService \
#define DEFINE_SERVICE_MULTI(iid, iface, ...) \
struct DECLSPEC_UUID(iid) iface; \
struct iface : IGameService, __VA_ARGS__ \
/// <summary>
/// Base interface for a game service.
/// </summary>
struct IGameService
{
};