public DustProcVisitProcess(DustSession session, DustInfoTray tray) { this.session = session; this.infoTray = tray; this.visitTray = tray as DustVisitTray; callbackTray = (null == visitTray) ? new DustVisitTray(tray, null) : new DustVisitTray(visitTray); callbackTray.entity = session.resolveEntity(tray.entity); empty = true; dip = tray.value as DustInfoProcessor; // dif = tray.value as DustInfoFilter; dvp = tray.value as DustVisitor; }
public static DustDataEntity loadSingleFromText(string jsonText, string mod, string id) { DustSystem system = DustSystem.getSystem(); DustSession session = system.getCurrentSession(); Dictionary <string, JsonUnitWrapper> js; js = JsonConvert.DeserializeObject <Dictionary <string, JsonUnitWrapper> >(jsonText); foreach (string k in js.Keys) { JsonUnitWrapper jw = js[k]; Console.WriteLine("Unit read " + k); jw.populate(js, system, k); } DustDataEntity eRoot = system.getEntity(mod, id); session.ctx[DustContext.SELF] = eRoot; return(eRoot); }
public DustSession(DustSession p) { this.parent = p; this.system = p.system; }
public DustSession(DustSystem system) { this.system = system; this.parent = null; }
public DustSystem() { rootSession = new DustSession(this); }