Example #1
0
    public void generatePaperProposal(ItemElementInfo element, ItemRitualInfo ritual)
    {
        PaperProposalInfo paperInfo = new PaperProposalInfo();

        paperInfo.element = element.id;
        paperInfo.ritual  = ritual.id;
    }
Example #2
0
    void generateProposal(bool doit)
    {
        //create paper proposal
        PaperProposalInfo info = new PaperProposalInfo();

        info.element = element;
        info.ritual  = ritual;
        if (doit)
        {
            info.state = paperProposalState.selected;
        }
        else
        {
            info.state = paperProposalState.cancelled;
        }
        Inventory.Instance.addPaperProposal(info);
        GetComponent <UIView>().Hide();
    }
Example #3
0
 public void addPaperProposal(PaperProposalInfo info)
 {
     paperProposals[info.id] = info;
 }