public TdlClass AddClass(string identifier) { if (identifier == "") { return(null); } TdlClass tdlClass = new TdlClass(identifier, this); _Classes.Add(tdlClass); ClassIdentifierLookup.Add(identifier, tdlClass); ClassLookup.Add(tdlClass.ObjectId, tdlClass); Root.AddClass(tdlClass); return(tdlClass); }
public TdlClass FindClass(uint objectId) { if (HasClass(objectId)) { return(GetClass(objectId)); } foreach (TdlNamespace tdlNamespace in Namespaces) { TdlClass possible = tdlNamespace.FindClass(objectId); if (possible != null) { return(possible); } } return(null); }
public TdlClass FindClass(string identifier) { if (HasClass(identifier)) { return(GetClass(identifier)); } foreach (TdlNamespace tdlNamespace in Namespaces) { TdlClass possible = tdlNamespace.FindClass(identifier); if (possible != null) { return(possible); } } return(null); }
internal void AddClass(TdlClass tdlClass) { _AllObjects.Add(tdlClass); _AllClasses.Add(tdlClass); }