Nuclide
Software Development Kit for id Technology (BETA)
UserInventory.h
1/*
2 * Copyright (c) 2025 Vera Visions LLC.
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
17typedef enum
18{
19 ITEM_PICTURE,
20 ITEM_AUDIO,
21 ITEM_VIDEO,
22 ITEM_OBJECT,
23 ITEM_APP,
24 ITEM_TEXT,
25 ITEM_WEB,
26} profileItem_t;
27
28string g_profileItems[] = {
29 "picture",
30 "audio",
31 "video",
32 "object",
33 "app",
34 "text",
35 "web"
36};
37
38class
40{
41public:
42 nonvirtual int IndexInventoryForType(string subDirectory, string fileExtension);
43 nonvirtual void IndexInventory(void);
44
45 nonvirtual int GetItemCount(profileItem_t);
46 nonvirtual ncDict GetItemDict(string, profileItem_t);
47 nonvirtual ncDict GetItemDictByIndex(int, profileItem_t);
48
49private:
50 int m_pictureCount;
51 int m_audioCount;
52 int m_videoCount;
53 int m_objectCount;
54 int m_appCount;
55 int m_textCount;
56};
57
This class is responsible for handling groups of key/value pairs.
Definition: Dict.h:35
Definition: UserInventory.h:40