public void LoadScenarioScripts(KSoft.IO.XmlElementStream s, FA mode, StreamTriggerScriptContext ctxt) { foreach (System.Xml.XmlElement e in s.Cursor) { if (e.Name != Engine.BTriggerSystem.kXmlRootName) { continue; } using (s.EnterCursorBookmark(e)) new Engine.BTriggerSystem().StreamXml(s, mode, this); } }
public void LoadScenarioScripts <TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s, StreamTriggerScriptContext ctxt) where TDoc : class where TCursor : class { s.SetSerializerInterface(this); foreach (var e in s.ElementsByName(Phx.BTriggerSystem.kXmlRootName)) { using (s.EnterCursorBookmark(e)) new Phx.BTriggerSystem().Serialize(s); } }
public void StreamTriggerScript(KSoft.IO.XmlElementStream s, FA mode, StreamTriggerScriptContext ctxt) { var ts = ctxt.Script = new Engine.BTriggerSystem(); ts.StreamXml(s, mode, this); }
public void StreamTriggerScript <TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s, StreamTriggerScriptContext ctxt) where TDoc : class where TCursor : class { s.SetSerializerInterface(this); var ts = ctxt.Script = new Phx.BTriggerSystem(); ts.Serialize(s); }