Battle Talent  V11
Public Types | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CrossLink.UnlockContentConfig Class Reference

Inherits Sirenix.OdinInspector.SerializedScriptableObject.

Public Types

enum class  UnlockContentType {
  Simple , Attribute , Weapon , Achievement ,
  Scene , Skin , Role , Potion ,
  Music , Avatar
}
 
enum class  ContentWeaponType {
  Axe = 0 , Bow , Dagger , GiantSword ,
  Gun , Hammer , Mace , Shield ,
  SingleHammer , Spear , Sword , Wand ,
  Other
}
 

Static Public Member Functions

static string GetUnlockKeyPrefix (GameMode gamemode, ItemSaveState type)
 
static UnlockContentConfig SelectConfig (GameMode gameMode)
 
static UnlockContentConfig GetConfig ()
 
static void Reset ()
 
static void AddItem (UnlockContentItem item)
 
static void AddItem (UnlockContentItem item, GameMode gameMode)
 
static void RemoveItem (string name)
 
static void RemoveItem (GameMode gameMode, string name)
 
static bool CanNotMountOnTheBack (string itemName)
 
static UnlockContentItem GetItemState (string itemName)
 
static bool IsItemUnlocked (string itemName)
 
static bool IsItemUnlockedAndEnabled (string itemName)
 
static int GetItemStillNeedCoin (string itemName)
 
static bool PayItem (string itemName, int coin)
 
static bool PayItem (UnlockContentItem item)
 
static void ToggleItem (string itemName)
 
static void ItemViewed (UnlockContentItem item, int level, bool storeSave=false)
 
static bool IsItemEnabled (string itemName)
 
static int GetItemSellPrice (InteractBase ib)
 
static int GetItemBuyPrice (string name, int forgeLevel)
 

Public Attributes

List< float > globalWeaponSellCoe = new List<float>() { 0f, 0f, 0f }
 
int defaultSellSoulNum
 
Dictionary< string, UnlockContentItemunlockInfos = new Dictionary<string, UnlockContentItem>()
 
List< string > unlockedWeaponList = new List<string>()
 
List< string > weaponList = new List<string>()
 
List< string > sceneList = new List<string>()
 
List< string > avatarList = new List<string>()
 
List< string > skinList = new List<string>()
 
List< string > roleList = new List<string>()
 
List< string > unlockedPotionList = new List<string>()
 
List< string > unlockedSpellList = new List<string>()
 
List< string > unlockedAllWeaponList = new List<string>()
 
List< string > itemBanList = new List<string>()
 

Static Public Attributes

const string UnlockResPath = "Config/UnlockContentConfig"
 
const string UnexistItem = "U"
 
const string UnexistInDemo = "UD"
 
static readonly string SpellPrefix = "Spell"
 
static System.Action< UnlockContentItemUnlockEvent