예제 #1
0
 private void ResolveInverseReferences()
 {
     foreach (KeyValuePair <uint, ObjectInfo> pair in this.objects)
     {
         foreach (ReferenceInfo info in pair.Value.references)
         {
             BackReferenceInfo item = new BackReferenceInfo {
                 parentObject = pair.Value,
                 fieldInfo    = info.fieldInfo
             };
             info.referencedObject.inverseReferences.Add(item);
         }
     }
 }
예제 #2
0
        private void ReadUnityObjects(BinaryReader reader)
        {
            uint num;

            while ((num = reader.ReadUInt32()) != 0)
            {
                if (this.objects.ContainsKey(num))
                {
                    BackReferenceInfo item = new BackReferenceInfo {
                        parentObject = this.kUnity,
                        fieldInfo    = new FieldInfo(this.objects[num].typeInfo.name)
                    };
                    this.objects[num].inverseReferences.Add(item);
                }
            }
        }
예제 #3
0
 private void ResolveInverseReferences()
 {
     foreach (KeyValuePair<uint, ObjectInfo> pair in this.objects)
     {
         foreach (ReferenceInfo info in pair.Value.references)
         {
             BackReferenceInfo item = new BackReferenceInfo {
                 parentObject = pair.Value,
                 fieldInfo = info.fieldInfo
             };
             info.referencedObject.inverseReferences.Add(item);
         }
     }
 }
예제 #4
0
 private void ReadUnityObjects(BinaryReader reader)
 {
     uint num;
     while ((num = reader.ReadUInt32()) != 0)
     {
         if (this.objects.ContainsKey(num))
         {
             BackReferenceInfo item = new BackReferenceInfo {
                 parentObject = this.kUnity,
                 fieldInfo = new FieldInfo(this.objects[num].typeInfo.name)
             };
             this.objects[num].inverseReferences.Add(item);
         }
     }
 }