mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-19 05:00:27 +02:00
52 lines
1009 B
C
52 lines
1009 B
C
/*
|
|
NETWORK_GAME_UI.C
|
|
|
|
symbols in this file:
|
|
0011AE30 0060:
|
|
_network_game_get_random_player_name (0000)
|
|
*/
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries.h"
|
|
#include "math/real_math.h"
|
|
#include "tag_files/tag_groups.h"
|
|
#include "text/text_group.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
/* ---------- prototypes */
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
wchar_t const *network_game_get_random_player_name(
|
|
void)
|
|
{
|
|
wchar_t const *player_name = L"";
|
|
long string_list_index = tag_loaded('ustr', "ui\\random_player_names");
|
|
|
|
if (string_list_index != NONE)
|
|
{
|
|
struct string_list *string_list = unicode_string_list_definition_get(string_list_index);
|
|
|
|
if (string_list)
|
|
{
|
|
short string_index = seed_random_range(
|
|
get_global_local_random_seed_address(),
|
|
0,
|
|
string_list->strings.count - 1);
|
|
player_name = unicode_string_list_get_string(string_list_index, string_index);
|
|
}
|
|
}
|
|
|
|
return player_name;
|
|
}
|
|
|
|
/* ---------- private code */
|