Exemple #1
0
 public void addQuest()
 {
     SaveLoad.QuestID qid = new SaveLoad.QuestID();
     qid.QuestID_Class = questID; qid.DESCRIPTION_PT = DescricaoQuest; qid.DESCRIPTION_EN = DescrptionQuest;
     qid.qProgress     = SaveLoad.QuestID.questProgress.Started;
     SaveLoad.questData.Add(qid);
 }
Exemple #2
0
    int completed = 0;//0=nao completada,1=completada

    public void triggerDrawA(SaveLoad.QuestID que)
    {
        Debug.Log("trigeredDraw");
        InventoryRef = GameObject.FindWithTag("Inventory");
        if (InventoryRef == null)
        {
            Debug.Log("InventoryRef continua nulo");
        }
        if (que == null)
        {
            Debug.Log("Objeto QUE e nulo !!!!!!!!!!!!!!!!!!!!!!!!");
        }
        if (que.enumIndex == 1)
        {
            completed = 1; Debug.Log("true");
        }                                                                                              //SaveLoad.QuestID.questProgress.Completed) { completed = 1;Debug.Log("true"); }
        Debug.Log(completed);
        iconImage.sprite = InventoryRef.gameObject.GetComponent <SpriteRefs>().ListaOthers[completed]; //];
        It = que;

        Invoke("DrawOnClick", 0);//teste*/
    }
Exemple #3
0
    // Start is called before the first frame update
    void Awake()
    {
        /*
         * ////////teste
         * for(int i=0; i < 4; i++) ///////////////////////////////          ITENS
         * {
         *  SaveLoad.Item tempItem = new SaveLoad.Item();
         *  tempItem.AMOUNT = 0; tempItem.ICONTYPEID = (i ); tempItem.ID = 0;
         *  if (i == 0)
         *  {
         *      tempItem.NAME_PT = "Pedra de mão"; tempItem.NAME_EN = "Hand Stone";
         *      tempItem.DESCRIPTION_PT = "Pedras que cabem na mão, podem ser usadas para construir uma Solução.";
         *      tempItem.DESCRIPTION_EN = "Stones that fits in the hand, can be used to build a Solution";
         *      tempItem.ISTACKABLE = true;
         *  }
         *  else if (i == 1)
         *  {
         *      tempItem.NAME_PT = "Pedra de Fina"; tempItem.NAME_EN = "Smooth Stone";
         *      tempItem.DESCRIPTION_PT = "Pedras que de tamanho pequeno, podem ser usadas para construir uma Solução.";
         *      tempItem.DESCRIPTION_EN = "Very small and tiny stones, can be used to build a Solution";
         *      tempItem.ISTACKABLE = true;
         *  }
         *  else if (i == 2)
         *  {
         *      tempItem.NAME_PT = "Planta"; tempItem.NAME_EN = "Plant";
         *      tempItem.DESCRIPTION_PT = "Planta que pode ser usada para construir uma Solução.";
         *      tempItem.DESCRIPTION_EN = "Plant that can be used to build a Solution";
         *      tempItem.ISTACKABLE = true;
         *  }
         *  else if (i == 3)
         *  {
         *      tempItem.NAME_PT = "Folhagem"; tempItem.NAME_EN = "Dry Leaves";
         *      tempItem.DESCRIPTION_PT = "Folhas secas que podem ser usadas para construir uma Solução.";
         *      tempItem.DESCRIPTION_EN = "Dry leaves that can be used to build a Solution";
         *      tempItem.ISTACKABLE = true;
         *  }
         *  tempItem.TYPE = 1;
         *  SaveLoad.inventoryData.Add(tempItem);
         *
         * }*/
        for (int i = 0; i < 2; i++)///////////////////////////////          SOLUTIONS
        {
            SaveLoad.Solutions tempItem = new SaveLoad.Solutions();

            if (i == 0)
            {
                tempItem.icone          = 0;
                tempItem.NAME_PT        = "Fossa Evapotranspiradora"; tempItem.NAME_EN = "Evapotranspiratory Tank";
                tempItem.DESCRIPTION_PT = "Solução Fossa Evapotranspiradora pode ser construída com 5xPedras de Mão, 5xFolhagens, 4xPlantas, 15xPedras Finas.";
                tempItem.DESCRIPTION_EN = "Solution Evapotranspiratory Tank can be builden with 5xHand Stones, 5xDryLeaves, 4xPlants, 15xSmooth Stones.";
            }
            else if (i == 1)
            {
                tempItem.icone          = 1;
                tempItem.NAME_PT        = "Círculo de Bananeira"; tempItem.NAME_EN = "Banana Circle";
                tempItem.DESCRIPTION_PT = "Solução Círculo de Bananeira pode ser construída com 5xPedras de Mão, 5xFolhagens, 4xPlantas, 15xPedras Finas.";
                tempItem.DESCRIPTION_EN = "Solution Banana Circle can be builden with 5xHand Stones, 5xDryLeaves, 4xPlants, 15xSmooth Stones.";
            }
            SaveLoad.solutionsData.Add(tempItem);
        }
        for (int i = 0; i < 1; i++)///////////////////////////////          QUESTS
        {
            SaveLoad.QuestID tempItem = new SaveLoad.QuestID();

            if (i == 0)
            {
                tempItem.qProgress      = SaveLoad.QuestID.questProgress.Started; tempItem.enumIndex = 1;
                tempItem.NAME_PT        = "Purifique o rio!"; tempItem.NAME_EN = "Purify the river";
                tempItem.DESCRIPTION_PT = "Implemente todas as 8 Soluções!";
                tempItem.DESCRIPTION_EN = "Implement all the 8 Solutions!";
                //Debug.Log("PAR");
            }

            SaveLoad.questData.Add(tempItem);
        }

        /*TESTSaveLoad.AddItemOnInventory(0); SaveLoad.AddItemOnInventory(1); SaveLoad.AddItemOnInventory(2); SaveLoad.AddItemOnInventory(3);
         * /*/SelfUpdate();
    }