Beispiel #1
0
 public void VisitNodeOutfitUnlocked(NodeOutfitUnlocked nou)
 {
     _writer.WriteStartElement("NodeOutfitUnlocked");
     _writer.WriteAttributeString("Character", nou.Character.Name);
     _writer.WriteAttributeString("Outfit", nou.Outfit.Name);
     _writer.WriteEndElement();
 }
 public void VisitNodeOutfitUnlocked(NodeOutfitUnlocked nou)
 {
     _writer.WriteStartElement("NodeOutfitUnlocked");
     if (nou.Character != null)
     {
         _writer.WriteAttributeString("Character", _projectService.Characters.IndexOf(nou.Character).ToString());
     }
     if (nou.Character != null && nou.Outfit != null)
     {
         _writer.WriteAttributeString("Outfit", nou.Character.Outfits.IndexOf(nou.Outfit).ToString());
     }
     _writer.WriteEndElement();
 }
 public void VisitNodeOutfitUnlocked(NodeOutfitUnlocked nou)
 {
     if (nou.Character == null)
     {
         _report.AddMessage(ProjectReportMessage.MessageSeverity.Error, "A outfit unlock node has no assigned character.", nou);
     }
     else if (nou.Outfit == null)
     {
         _report.AddMessage(ProjectReportMessage.MessageSeverity.Error, "A outfit unlock node has no assigned pose.", nou);
     }
     else if (nou.Character.Outfits.IndexOf(nou.Outfit) == -1)
     {
         _report.AddMessage(ProjectReportMessage.MessageSeverity.Error, "A outfit unlock node has an invalid pose assigned.", nou);
     }
 }
 public void VisitNodeOutfitUnlocked(NodeOutfitUnlocked nou)
 {
     throw new NotImplementedException();
 }