'Game.Server.GameObjects.GamePlayer' does not implement interface member 'Game.Logic.IGamePlayer.AddPrestige (bool)'

0

Error:

  

'Game.Server.GameObjects.GamePlayer' does not implement interface member 'Game.Logic.IGamePlayer.AddPrestige (bool)'

Code:

public class GamePlayer : IGamePlayer
{
    public void AddPrestige(bool isWin, eRoomType roomType)
    {
      if (roomType == eRoomType.RingStation)
      {
        UserRingStationInfo ringStationInfos = RingStationMgr.GetSingleRingStationInfos(this.PlayerCharacter.ID);
        if (ringStationInfos != null)
        {
          int num = RingStationMgr.ConfigInfo.AwardBattleByRank(ringStationInfos.get_Rank(), isWin);
          string translation = LanguageMgr.GetTranslation("Ringstasion.BattleLost", (object) num);
          if (isWin)
          {
            num = RingStationMgr.ConfigInfo.AwardBattleByRank(ringStationInfos.get_Rank(), isWin);
            translation = LanguageMgr.GetTranslation("Ringstasion.BattleWin", (object) num);
          }
          this.AddLeagueMoney(num);
          this.SendMessage(translation);
        }
      }
      if (roomType != eRoomType.BattleRoom)
        return;
      this.BattleData.AddPrestige(isWin);
    }

I have summarized to you, because the whole code has more than a thousand lines, whoever wants the whole code comments.

    
asked by anonymous 30.07.2016 / 18:10

1 answer

1

The problem of signing the AddPrestige method in the interface has only one parameter boolean and its method implementation receives two parameters, a boolean and a eRoomType .

You need to do with what your method is as the interface asks for.

public void AddPrestige(bool isWin) { }

There may be two methods with the same, but with different signatures as well. In this case, you need to implement the two interface members.

There is no way to help you more because you did not give more details about the problem.

    
31.07.2016 / 00:56