2020-08-27 08:10:21 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-01-24 00:40:09 +01:00
|
|
|
#include "DataTypes.h"
|
|
|
|
#include "IGameService.h"
|
2020-08-27 08:10:21 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
enum class NetPlayerState;
|
|
|
|
enum class GameTeam;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Service providing localization of text placeholders and friendly-name mappings of common enums.
|
|
|
|
/// </summary>
|
2021-01-24 00:40:09 +01:00
|
|
|
DEFINE_SERVICE("{770DEBD3-165D-4340-829D-5262F473FBE3}", ITextLookupService)
|
2020-08-27 08:10:21 +02:00
|
|
|
{
|
2021-01-04 09:35:21 +01:00
|
|
|
virtual std::string STDMETHODCALLTYPE GetLocalized(tstring_view lookup) = 0;
|
2020-08-27 08:10:21 +02:00
|
|
|
|
|
|
|
virtual std::string STDMETHODCALLTYPE GetNetPlayerStateName(enum class NetPlayerState state) = 0;
|
|
|
|
|
|
|
|
virtual std::string STDMETHODCALLTYPE GetGameTeamName(GameTeam team) = 0;
|
|
|
|
|
|
|
|
virtual std::string STDMETHODCALLTYPE GetPlayerTeamName(int teamIndex) = 0;
|
2021-01-24 00:40:09 +01:00
|
|
|
};
|