CodeScrollItem.getIDEInput C# (CSharp) Method

getIDEInput() public method

public getIDEInput ( ) : IDEInput,
return IDEInput,
    public IDEInput getIDEInput()
    {
        UnityEngine.Debug.Log("********************IN CodeScrollITEM getIDEInput**********************");
        UnityEngine.Debug.Log("juneconfig.java_files_path: "+JuneConfig.java_files_path);
        UnityEngine.Debug.Log("file_name: "+file_name);
        UnityEngine.Debug.Log("********************DONE WITH CodeScrollITEM getIDEInput**********************");
        return new EclipseInput("CodeSpellsJava", JuneConfig.java_files_path+"/"+file_name);
    }

Usage Example

Ejemplo n.º 1
0
    string givePlayerAScroll()
    {
        CodeScrollItem item;

        GameObject initial_scroll = new GameObject();

        initial_scroll.name = "InitialScroll";
        initial_scroll.AddComponent <CodeScrollItem>();
        item                  = initial_scroll.GetComponent <CodeScrollItem>();
        item.item_name        = "Blank";
        item.inventoryTexture = Resources.Load("Textures/Scroll") as Texture2D;

        if (!copied_spells.ContainsKey(currentPage().getName()))
        {
            copied_spells.Add(currentPage().name, 0);
        }


        int number_so_far = copied_spells[currentPage().getName()];
        int number        = number_so_far + 1;

        copied_spells[currentPage().name]++;

        CodeScrollItem code_scroll_item_component = initial_scroll.GetComponent <CodeScrollItem>();

        code_scroll_item_component.setCurrentFile(currentPage().getName() + number + ".java");

        code_scroll_item_component.getIDEInput().SetCode(currentPage().code.Replace(currentPage().getName(), currentPage().getName() + number));

        ProgramLogger.LogCode(currentPage().getName() + number, code_scroll_item_component.getIDEInput().GetCode());
        SpellLogger.LogCode(currentPage().getName() + number, code_scroll_item_component.getIDEInput().GetCode());

        GameObject.Find("Inventory").GetComponent <Inventory>().addItem(initial_scroll);
        return(currentPage().getName() + number + ".java");
    }
All Usage Examples Of CodeScrollItem::getIDEInput