void PrepareObjects(Commands currentCommand) { for (int i = 0; i < currentCommand.interactableItemInFile.Length; i++) { string descriptionNotInInventory = interactableItems.ObjectsNotInInventory(currentCommand, i); if (descriptionNotInInventory != null) { interactionDescriptions.Add(descriptionNotInInventory); } //interactables = interactableInRoom from tutorial InteractableObject interactables = currentCommand.interactableItemInFile[i]; for (int j = 0; j < interactables.interactions.Length; j++) { Interaction interaction = interactables.interactions[j]; if (interaction.inputAction.keyWord == "examine") //"examine" is filler, change up for either "help" or "?" { interactableItems.examineDictionary.Add(interactables.noun, interaction.textResponse); } if (interaction.inputAction.keyWord == "create") //"create", used for "create" the files (index.html, style.css, main.js) { interactableItems.createDictionary.Add(interactables.noun, interaction.textResponse); } if (interaction.inputAction.keyWord == "add") //"add", used for "add" elements to site (HTML lines, exp. <h1>) { interactableItems.addDictionary.Add(interactables.noun, interaction.textResponse); } if (interaction.inputAction.keyWord == "background:") //"background", adds background image on "body" { interactableItems.backgroundDictionary.Add(interactables.noun, interaction.textResponse); } if (interaction.inputAction.keyWord == "const") //"background", adds background image on "body" { interactableItems.constDictionary.Add(interactables.noun, interaction.textResponse); } if (interaction.inputAction.keyWord == "code") //"background", adds background image on "body" { interactableItems.codeDictionary.Add(interactables.noun, interaction.textResponse); } } } }