예제 #1
0
            MBObjectBase ObsoleteObjectManager.IObjectTypeRecord.GetMBObject(
                MBGUID objId)
            {
                T obj = default(T);

                this.RegisteredObjectsWithGuid.TryGetValue(objId, out obj);
                return((MBObjectBase)obj);
            }
예제 #2
0
 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);
 }
예제 #3
0
        void IBasicTypeSerializer.Serialize(IWriter writer, object value)
        {
            MBGUID mbguid = (MBGUID)value;

            writer.WriteUInt(mbguid.InternalValue);
        }