public void Handle(Req1 message) { logger.Info("------------ Handle(Req1) ------------"); Bus.Send(new Req2 { Identifier = Guid.NewGuid() }); }
public void Save(int itemNum) { if (!Directory.Exists(Paths.DataPath + "Item")) { Directory.CreateDirectory(Paths.DataPath + "Item"); } using (XmlWriter writer = XmlWriter.Create(Paths.DataPath + "Item\\" + itemNum + ".xml", Logger.XmlWriterSettings)) { writer.WriteStartDocument(); writer.WriteStartElement("ItemEntry"); #region Basic data writer.WriteStartElement("General"); writer.WriteElementString("Name", Name); writer.WriteElementString("Description", Desc); writer.WriteElementString("ItemType", Type.ToString()); writer.WriteElementString("Price", Price.ToString()); writer.WriteElementString("Rarity", Rarity.ToString()); writer.WriteElementString("Sprite", Sprite.ToString()); writer.WriteElementString("Requirement", Req.ToString()); writer.WriteElementString("Req1", Req1.ToString()); writer.WriteElementString("Req2", Req2.ToString()); writer.WriteElementString("Req3", Req3.ToString()); writer.WriteElementString("Req4", Req4.ToString()); writer.WriteElementString("Req5", Req5.ToString()); writer.WriteElementString("Effect", Effect.ToString()); writer.WriteElementString("Effect1", Effect1.ToString()); writer.WriteElementString("Effect2", Effect2.ToString()); writer.WriteElementString("Effect3", Effect3.ToString()); writer.WriteElementString("ThrowEffect", ThrowEffect.ToString()); writer.WriteElementString("Throw1", Throw1.ToString()); writer.WriteElementString("Throw2", Throw2.ToString()); writer.WriteElementString("Throw3", Throw3.ToString()); writer.WriteEndElement(); #endregion Basic data writer.WriteEndElement(); writer.WriteEndDocument(); } }
public Plot Clone() => new Plot { Req1 = Req1.Clone(), Req2 = Req2.Clone(), Req3 = Req3.Clone(), District = District };
public object Get(Req1 request) {