Nuclide
Software Development Kit for id Technology (BETA)
sentences.h
1/*
2 * Copyright (c) 2016-2020 Marco Cawthorne <marco@icculus.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
95#ifdef SERVER
96//#define DYNAMIC_SENTENCES
97
98#ifdef DYNAMIC_SENTENCES
99 string *g_sentences;
101#else
102 #define SENTENCES_LIMIT 1536
105#endif
106
108string Sentences_GetSamples(string);
110int Sentences_GetID(string);
111
112
113#endif
114
115#ifdef CLIENT
117string Sentences_GetString(int id);
118
120void Sentences_Shutdown(void);
121
122#endif
123 // end of sentences
125
127void Sentences_Init(void);
128
129var hashtable g_hashsentences;
string g_sentences[1536]
Definition: sentences.h:103
void Sentences_Shutdown(void)
Called by CSQC_Shutdown() when the client game exits to clear the sentences buffer.
Definition: sentences.qc:41
#define SENTENCES_LIMIT
Definition: sentences.h:102
int Sentences_GetID(string)
Returns the shared network ID for a given sentence.
Definition: sentences.qc:288
string Sentences_GetString(int id)
Gets the sentences string for a given id.
Definition: sentences.qc:166
int g_sentences_count
Definition: sentences.h:104
string Sentences_GetSamples(string)
Returns a string of sample for a given sentence.
Definition: sentences.qc:152