public TdlStruct AddStruct(string identifier) { if (identifier == "") { return(null); } TdlStruct tdlStruct = new TdlStruct(identifier, this); _Structs.Add(tdlStruct); StructIdentifierLookup.Add(identifier, tdlStruct); StructLookup.Add(tdlStruct.ObjectId, tdlStruct); Root.AddStruct(tdlStruct); return(tdlStruct); }
public TdlStruct FindStruct(uint objectId) { if (HasStruct(objectId)) { return(GetStruct(objectId)); } foreach (TdlNamespace tdlNamespace in Namespaces) { TdlStruct possible = tdlNamespace.FindStruct(objectId); if (possible != null) { return(possible); } } return(null); }
public TdlStruct FindStruct(string identifier) { if (HasStruct(identifier)) { return(GetStruct(identifier)); } foreach (TdlNamespace tdlNamespace in Namespaces) { TdlStruct possible = tdlNamespace.FindStruct(identifier); if (possible != null) { return(possible); } } return(null); }
internal void AddStruct(TdlStruct tdlStruct) { _AllObjects.Add(tdlStruct); _AllStructs.Add(tdlStruct); }