コード例 #1
0
 public override void ApplyAvatarChange(AllianceMemberEntry memberEntry)
 {
     if (this.VillageType == 1)
     {
         memberEntry.SetDuelScore(memberEntry.GetDuelScore() - this.ScoreChange);
     }
     else
     {
         memberEntry.SetScore(memberEntry.GetScore() - this.ScoreChange);
     }
 }
コード例 #2
0
        public static void SetLogicClientAvatarToAllianceMemberEntry(LogicClientAvatar avatar, AllianceMemberEntry allianceMemberEntry, Alliance alliance = null)
        {
            bool updateScoring = avatar.GetScore() != avatar.GetScore();

            allianceMemberEntry.SetAvatarId(avatar.GetId());
            allianceMemberEntry.SetHomeId(avatar.GetCurrentHomeId());
            allianceMemberEntry.SetName(avatar.GetName());
            allianceMemberEntry.SetExpLevel(avatar.GetExpLevel());
            allianceMemberEntry.SetLeagueType(avatar.GetLeagueType());
            allianceMemberEntry.SetScore(avatar.GetScore());
            allianceMemberEntry.SetDuelScore(avatar.GetDuelScore());
            allianceMemberEntry.SetWarPreference(avatar.GetWarPreference());

            if (alliance != null)
            {
                if (updateScoring)
                {
                    alliance.UpdateScoring();
                }
            }
        }
コード例 #3
0
 public override void ApplyAvatarChange(AllianceMemberEntry memberEntry)
 {
     memberEntry.SetDuelScore(memberEntry.GetDuelScore() + this.DuelScoreGain);
 }