public void ClearOldSession() { _battle.State.Data = null; if (_explorer.State.StageId != -1) { _explorer.State.IsRun = true; _explorerLogic.FinishExplorer(false); //_explorer.State.IsRun = true; } }
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); }
public void FinishExplore() { _explorerLogic.FinishExplorer(true); }