예제 #1
0
 public Objects.Item[] getItems(int Volume, UInt32 AdrStart)
 {
     Objects.Item[] Itenz = new Objects.Item[Volume];
     for (int i = 0; i < Volume; i++)
     {
         UInt32       ThisReadOffset = AdrStart + ((UInt32)i * ItemAddresses.Step);
         Objects.Item iten           = new Objects.Item();
         iten.StackCount = ReadInt32(ThisReadOffset + ItemAddresses.Count);
         iten.Id         = ReadInt32(ThisReadOffset + ItemAddresses.Id);
         iten.Unknown2   = ReadInt32(ThisReadOffset + ItemAddresses.Unknown2);
         Itenz[i]        = iten;
     }
     return(Itenz);
 }
예제 #2
0
 public Objects.Item[] getItems(int Volume, UInt32 AdrStart)
 {
     Objects.Item[] Itenz = new Objects.Item[Volume];
     for (int i = 0; i < Volume; i++)
     {
         UInt32 ThisReadOffset = AdrStart + ((UInt32)i * ItemAddresses.Step);
         Objects.Item iten = new Objects.Item();
         iten.StackCount = ReadInt32(ThisReadOffset + ItemAddresses.Count);
         iten.Id = ReadInt32(ThisReadOffset + ItemAddresses.Id);
         iten.Unknown2 = ReadInt32(ThisReadOffset + ItemAddresses.Unknown2);
         Itenz[i] = iten;
     }
     return Itenz;
 }