forked from AthenaADP/MH4U-ASS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CharmDatabase.h
51 lines (42 loc) · 1.32 KB
/
CharmDatabase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include "Common.h"
ref struct Charm;
ref struct Query;
ref struct Armor;
ref struct Weapon;
ref struct TableSlotDatum
{
array< signed char, 2 >^ max_single;
array< array< List_t< Charm^ >^, 2 >^ >^ two_skill_data;
};
ref struct CharmLocationDatum
{
array< unsigned, 2 >^ table;
System::String^ example;
array< System::String^ >^ examples;
};
ref struct ExcavatedGear
{
static List_t< Weapon^ > weapons;
static array< List_t< Armor^ >^ >^ armor;
static bool LoadCustom();
static void SaveCustom();
};
ref struct CharmDatabase
{
static List_t< Charm^ > mycharms;
//static array< TableSlotDatum^, 2 >^ min_max;
//static Map_t< unsigned, unsigned >^ hash_to_table;
static Map_t< System::String^, CharmLocationDatum^ >^ location_cache;
static array< int >^ table_seeds = { 1, 15, 5, 13, 4, 3, 9, 12, 26, 18, 163, 401, 6, 2, 489, 802, 1203 };
static array< List_t< unsigned short >^ >^ table_seed_list;
static unsigned NumCharmTypes = 6;
static List_t< Charm^ >^ LoadCharms( System::String^ filename );
static bool LoadCustom();
static void SaveCustom();
static bool CreateNewCustom();
static void GenerateCharmTable();
static bool CharmIsLegal( Charm^ charm );
static List_t< Charm^ >^ GetCharms( Query^ query, const bool use_two_skill_charms );
static CharmLocationDatum^ FindCharmLocations( Charm^ charm );
};