public void Initialize() { ProtectionItem[] armor = playerItem.CurrentArmor(); //装備を取得 WeaponItem leftHand = playerItem.LeftHand(); //左手 WeaponItem rightHand = playerItem.RightHand(); //右手 ConsumptionItem arrow = playerItem.Arrow(); AccessaryItem accessary = playerItem.Accessary(); items = new Item[8]; for (int i = 0; i < armor.Length; i++) { items[i] = armor[i]; } items[4] = leftHand; items[5] = rightHand; items[6] = arrow; items[7] = accessary; currentItem = null; }
public void Set() { clearDungen = gameManager.DungeonProcess.GetProcess(); money = playerInventory.CurrentMoney(); bag = playerInventory.BagList(); armor = playerInventory.CurrentArmor(); leftHand = playerInventory.LeftHand(); rightHand = playerInventory.RightHand(); arrow = playerInventory.Arrow(); accessary = playerInventory.Accessary(); depotEquipment = playerInventory.EquipDepository(); depotConsumption = playerInventory.DepositoryItem(); questLoader = gameManager.QuestManager; quest = gameManager.PlayerQuest.CurrentQuest(); guildRank = gameManager.GuildInfo; }
public SaveData(GameManager gameManager) { this.gameManager = gameManager; itemManager = gameManager.ItemManager; playerInventory = gameManager.PlayerItem; clearDungen = gameManager.DungeonProcess.GetProcess(); money = playerInventory.CurrentMoney(); bag = playerInventory.BagList(); armor = playerInventory.CurrentArmor(); leftHand = playerInventory.LeftHand(); rightHand = playerInventory.RightHand(); arrow = playerInventory.Arrow(); accessary = playerInventory.Accessary(); quest = new List <Quest>(); questLoader = gameManager.QuestManager; guildRank = gameManager.GuildInfo; saveFileName = @"Content/SaveCSV/SaveDate.csv"; isSave = false; isLoad = false; }