Ejemplo n.º 1
0
        private void HandleCharacterCharacteristicsInformations(StatsUpgradeResultMessage message, ConnectedHost source)
        {
            switch (message.result)
            {
            default:
                TextDataAdapter.GetText("ui.popup.statboostFailed.text");
                break;

            case 0:
                source.logger.Log("Caractéristique augmentée avec succés.", Common.Default.Loging.LogLevelEnum.Succes);
                break;

            case 1:
                source.logger.Log(TextDataAdapter.GetText("ui.charSel.deletionErrorUnsecureMode"), Common.Default.Loging.LogLevelEnum.Error);
                break;

            case 2:
                source.logger.Log(TextDataAdapter.GetText("ui.fight.guestAccount"), Common.Default.Loging.LogLevelEnum.Error);
                break;

            case 3:
                source.logger.Log(TextDataAdapter.GetText("ui.error.cantDoInFight"), Common.Default.Loging.LogLevelEnum.Error);
                break;

            case 4:
                source.logger.Log(TextDataAdapter.GetText("ui.popup.statboostFailed.notEnoughPoint"), Common.Default.Loging.LogLevelEnum.Error);
                break;
            }
            OnUpdated();
        }
Ejemplo n.º 2
0
 public NpcModel(GameRolePlayNpcInformations message)
     : base(message)
 {
     NpcId            = message.npcId;
     Sex              = message.sex;
     SpecialArtworkId = message.specialArtworkId;
     NpcData          = GameDataAdapter.GetClass <Npc>(NpcId);
     if (NpcData == null)
     {
         return;
     }
     NpcName    = TextDataAdapter.GetText((int)NpcData.NameId);
     NpcReplies = new List <Replie>();
     foreach (List <int> list in this.NpcData.DialogReplies)
     {
         this.NpcReplies.Add(new Replie(list[0], TextDataAdapter.GetText(list[1])));
     }
 }