123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- using FL.Network;
- using System;
- using System.Collections.Generic;
- using XGame.Database;
- using XGame.Framework;
- using XGame.Framework.Data;
- namespace FL.Data
- {
-
-
-
- public enum eCareerType
- {
- Novice = 0,
- Soldier,
- Shooter,
- Magician,
- }
-
-
-
- public enum eAdvanceType
- {
- Beginner = 1,
- ShieldWarrior = 2,
- Berserker = 5,
- CriticalShooter =3,
- ComboShooter =6,
- SpellMage = 4,
- ViolentMage =7,
- }
- public class PlayerData : DataSingleton<PlayerData>, IDisposable
- {
- public int[] skillIds = new int[] { 10011 };
- public long UID { get; set; }
- public int ServerId { get; set; }
- public string Name { get; set; }
- private List<string> _runePlanNamesArray;
- public List<string> RunePlanNamesArray => _runePlanNamesArray ??= new List<string>();
- private Attributes _attr;
- public Attributes Attr => _attr ??= ObjectPool.Acquire<Attributes>();
- private List<int> _jobHistoryList;
- public List<int> JobHistoryList => _jobHistoryList ??= new List<int>();
- private Dictionary<int, RunePlan> _runePlanMap;
- public Dictionary<int, RunePlan> RunePlanMap => _runePlanMap ??= new Dictionary<int, RunePlan>();
-
-
-
- public int Level
- {
- get; set;
- }
-
-
-
- public long Exp
- {
- get; set;
- }
-
-
-
- public string Title
- {
- get; set;
- }
-
-
-
- public string HeadIcon { get; set; }
-
-
-
- public string WXHeadIcon { get; set; }
-
-
-
- public int Recharge { get; set; }
-
-
-
- public long Power { get; set; }
-
-
-
- public long LastLoginTime { get; set; }
-
-
-
- public int JobId { get; set; }
-
-
-
- public int ResetJobId { get; set; }
-
-
-
- public int CurPlanIndex { set; get; }
-
-
-
- public int AllPoint { get; set; }
-
-
-
-
- public int GetTransfersCount()
- {
-
- return JobHistoryList.Count - 1;
- }
- void IDisposable.Dispose()
- {
- if (_attr != null)
- {
- ObjectPool.Recycle(_attr);
- _attr = null;
- }
- _runePlanMap?.Clear();
- _jobHistoryList?.Clear();
- _runePlanNamesArray?.Clear();
- }
- }
- }
|