-
Notifications
You must be signed in to change notification settings - Fork 19
/
Decoration.h
34 lines (27 loc) · 1.2 KB
/
Decoration.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
#pragma once
#include "Common.h"
#include "Skill.h"
ref struct Query;
ref struct Decoration
{
System::String^ name;
unsigned hr, slot_level, rarity, difficulty, index, num_owned;
bool is_event, can_use;
List_t< AbilityPair^ > abilities;
List_t< MaterialComponent^ > components;
bool IsBetterThan( Decoration^ other, List_t< Ability^ >^ rel_abilities );
int GetSkillAt( Ability^ ability );
bool MatchesQuery( Query^ query );
static void Load( System::String^ filename );
static void LoadLanguage( System::String^ filename );
static void LoadCustom( System::String^ filename );
static void LoadCustom();
static void SaveCustom();
static List_t< Decoration^ > static_decorations;
static Map_t< Ability^, List_t< Decoration^ >^ > static_decoration_ability_map;
static Map_t< System::String^, Decoration^ > static_decoration_map;
static Decoration^ FindDecoration( System::String^ name );
static Decoration^ FindDecorationFromString( System::String^ line );
static Decoration^ GetBestDecoration( Ability^ ability, const unsigned max_slot_level, List_t< List_t< Decoration^ >^ >% rel_deco_map );
static Decoration^ GetBestDecoration( Ability^ ability, const unsigned max_slot_level, const unsigned hr );
};