/[MorrowindCustomClothingSlotCreator]/trunk/libTES3FileFormat/PlugingClothing.cs
ViewVC logotype

Diff of /trunk/libTES3FileFormat/PlugingClothing.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by william, Fri Jul 29 18:22:20 2011 UTC revision 22 by william, Fri Jul 29 18:34:38 2011 UTC
# Line 48  namespace libTES3FileFormat Line 48  namespace libTES3FileFormat
48    
49          byte[] CLOT_OTHER_DATA { get; set; } // the rest of the clothing data entry          byte[] CLOT_OTHER_DATA { get; set; } // the rest of the clothing data entry
50      }      }
51      public class ClothingEntry : IClothingEntry      public class ClothingEntry : IClothingEntry, IComparable
52      {      {
53            #region IComparable Members
54    
55            public int CompareTo(object obj) { return this.CLOT_NAME.CompareTo((obj as ClothingEntry).CLOT_NAME); }
56    
57            #endregion
58          public ClothingEntry()          public ClothingEntry()
59          {          {
60              this.Offset = 0;              this.Offset = 0;
# Line 105  namespace libTES3FileFormat Line 110  namespace libTES3FileFormat
110          private byte[] _CLOT_OTHER_DATA;          private byte[] _CLOT_OTHER_DATA;
111          public byte[] CLOT_OTHER_DATA { get { return _CLOT_OTHER_DATA; } set { _CLOT_OTHER_DATA = value; } } // the rest of the clothing data entry          public byte[] CLOT_OTHER_DATA { get { return _CLOT_OTHER_DATA; } set { _CLOT_OTHER_DATA = value; } } // the rest of the clothing data entry
112          #endregion          #endregion
113    
114    
115      }      }
116    
117      public interface IPlugingClothing : IParse, ICommit, IAsBytes, ISizeOffset      public interface IPlugingClothing : IParse, ICommit, IAsBytes, ISizeOffset
# Line 268  namespace libTES3FileFormat Line 275  namespace libTES3FileFormat
275    
276                  //break;                  //break;
277                  this.ClothingEntries.Add(entry);                  this.ClothingEntries.Add(entry);
278                    this.ClothingEntries.Sort(); // sorting should not cause any major issues, since each entry holds its own offset
279              }              }
280                                        
281    

Legend:
Removed from v.20  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.22