Beispiel #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();
 }
Beispiel #2
0
 public static bool Time1BiggerThan2(HonorDataHistoryItem _Item1, HonorDataHistoryItem _Item2)
 {
     return(_Item1.Uploader.GetTime() > _Item2.Uploader.GetTime());
 }
Beispiel #3
0
 public static bool CopyUploader2To1(HonorDataHistoryItem _Data1, HonorDataHistoryItem _Data2)
 {
     _Data1.Uploader = _Data2.Uploader;
     return(true);
 }
Beispiel #4
0
 public static bool IsSame(HonorDataHistoryItem _Item1, HonorDataHistoryItem _Item2)
 {
     return(_Item1.Data.IsSame(_Item2.Data));
 }