Esempio n. 1
0
 public static void SetExplorer(int stateId, LogExplorerType type)
 {
     _inst.AddLog(Create(UserLogType.LogEndExplore, new Dictionary <string, object>
     {
         { "type", (int)type },
         { "stage_id", stateId }
     }));
 }
 public void EndExplorer(Int32[] inventoryIds, LogExplorerType result)
 {
     PreCommand();
     try
     {
         _modules.ExplorerProgressModule.EndExplorer(inventoryIds, result);
     }
     catch (Exception e)
     {
         Logger.Exception(e, "EndExplorer", new object[] { (object)inventoryIds, (object)(int)result });
         return;
     }
     PostCommand("EndExplorer", new object[] { (object)inventoryIds, (object)(int)result });
 }
 public void EndExplorer(Int32[] inventoryIds, LogExplorerType result)
 {
     PreCommand();
     try
     {
         _modules.ExplorerProgressModule.EndExplorer(inventoryIds, result);
     }
     catch (Exception e)
     {
         Logger.ErrorEmulate(e);
         return;
     }
     PostCommand();
 }
 public void EndExplorer(int[] inventoryIds, LogExplorerType result)
 {
     if (result == LogExplorerType.Start)
     {
         throw new Exception("Invalid exploration end state");
     }
     if (result == LogExplorerType.FinishImpact)
     {
         if (inventoryIds.Length > 10)
         {
             throw new Exception("The number of selected items must not exceed 100");
         }
         foreach (var id in inventoryIds)
         {
             _inventory.AddItem(id, _explorer.State.Inventory[id]);
         }
     }
     _battle.State.Data = null;
     LogicLog.SetExplorer(_explorer.State.StageId, result);
     _explorerLogic.FinishExplorer(result == LogExplorerType.FinishImpact);
 }