MBObjectBase ObsoleteObjectManager.IObjectTypeRecord.GetMBObject( MBGUID objId) { T obj = default(T); this.RegisteredObjectsWithGuid.TryGetValue(objId, out obj); return((MBObjectBase)obj); }
internal MBObjectBase GetObject(MBGUID objectId) { foreach (ObsoleteObjectManager.IObjectTypeRecord objectTypeRecord in this.ObjectTypeRecords) { if (objectTypeRecord != null && (int)objectTypeRecord.TypeNo == (int)objectId.GetTypeIndex()) { return(objectTypeRecord.GetMBObject(objectId)); } } return((MBObjectBase)null); }
void IBasicTypeSerializer.Serialize(IWriter writer, object value) { MBGUID mbguid = (MBGUID)value; writer.WriteUInt(mbguid.InternalValue); }