Ejemplo n.º 1
0
 public Player(string _Name, WowRealm _Realm, CharacterDataHistoryItem _Character, GuildDataHistoryItem _Guild, HonorDataHistoryItem _Honor, GearDataHistoryItem _Gear, ArenaDataHistoryItem _Arena, TalentsDataHistoryItem _Talents)
 {
     Name             = _Name;
     Realm            = _Realm;
     Character        = _Character.Data;
     Guild            = _Guild.Data;
     Honor            = _Honor.Data;
     Gear             = _Gear.Data;
     Arena            = _Arena.Data;
     TalentPointsData = _Talents.Data;
     Uploader         = _Character.Uploader;
     if (_Guild.Uploader.GetTime() > Uploader.GetTime())
     {
         Uploader = _Guild.Uploader;
     }
     if (_Honor.Uploader.GetTime() > Uploader.GetTime())
     {
         Uploader = _Honor.Uploader;
     }
     if (_Gear.Uploader.GetTime() > Uploader.GetTime())
     {
         Uploader = _Gear.Uploader;
     }
     if (_Arena.Uploader.GetTime() > Uploader.GetTime())
     {
         Uploader = _Arena.Uploader;
     }
     if (_Talents.Uploader.GetTime() > Uploader.GetTime())
     {
         Uploader = _Talents.Uploader;
     }
     LastSeen = Uploader.GetTime();
 }
Ejemplo n.º 2
0
 public static bool Time1BiggerThan2(CharacterDataHistoryItem _Item1, CharacterDataHistoryItem _Item2)
 {
     return(_Item1.Uploader.GetTime() > _Item2.Uploader.GetTime());
 }
Ejemplo n.º 3
0
 public static bool CopyUploader2To1(CharacterDataHistoryItem _Data1, CharacterDataHistoryItem _Data2)
 {
     _Data1.Uploader = _Data2.Uploader;
     return(true);
 }
Ejemplo n.º 4
0
 public static bool IsSame(CharacterDataHistoryItem _Item1, CharacterDataHistoryItem _Item2)
 {
     return(_Item1.Data.IsSame(_Item2.Data));
 }