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

        paperInfo.element = element.id;
        paperInfo.ritual  = ritual.id;
    }
 public void select(ObjectInfo info)
 {
     if (info is ItemElementInfo)
     {
         elementInfo = (ItemElementInfo)info;
     }
     if (info is ItemRitualInfo)
     {
         ritualInfo = (ItemRitualInfo)info;
     }
     if (elementInfo == null || elementInfo.id == "")
     {
         details.text = "please select an element to combine";
     }
     else if (ritualInfo == null || ritualInfo.id == "")
     {
         details.text = "please select a ritual to combine";
     }
     else
     {
         details.text = string.Format("combine elemten {0} (level {2}) and ritual {1} (level {3}).", elementInfo.name, ritualInfo.name, elementInfo.level, ritualInfo.level);
     }
 }