Changes

Jump to navigation Jump to search
61 bytes added ,  01:31, 23 August 2022
m
Line 405: Line 405:  
''Note:'' The following information may not be 100% accurate.
 
''Note:'' The following information may not be 100% accurate.
   −
* '''connectedItemPairs''': Array of AnchoredObjects index pairs where the first item (of pair) is the item that will delete the second item (of pair). Example: (87, 110) - item #87 will delete item #110, when #87 gets deleted. This is only available in ManiaPlanet.
+
* '''connectedItemPairs''': Array of AnchoredObjects index pairs where the first item (of pair) is the item that will delete the second item (of pair). Example: (87, 110) - item #87 will delete item #110, when #87 gets deleted.
 
* '''snappedBlocks''': ''Values'' are ''indexes'' of the Blocks array (chunk 0x01F). -1 = snapped to an item and you should use the index of snappedItems.
 
* '''snappedBlocks''': ''Values'' are ''indexes'' of the Blocks array (chunk 0x01F). -1 = snapped to an item and you should use the index of snappedItems.
 
* '''snappedItems''': ''Values'' are ''indexes'' of the AnchoredObjects array (this chunk). -1 = snapped to a block and you should use the index of snappedBlocks.
 
* '''snappedItems''': ''Values'' are ''indexes'' of the AnchoredObjects array (this chunk). -1 = snapped to a block and you should use the index of snappedBlocks.
Line 418: Line 418:  
  for each item:
 
  for each item:
 
     node item (CGameCtnAnchoredObject, direct node)
 
     node item (CGameCtnAnchoredObject, direct node)
  if version >= 1 && version < 5:
+
  if version >= 1 && version != 5:
 
     uint32 connectedItemPairCount
 
     uint32 connectedItemPairCount
 
     uint2 connectedItemPairs[connectedItemPairCount] // 2 uint32 per element
 
     uint2 connectedItemPairs[connectedItemPairCount] // 2 uint32 per element
 
  if version >= 5: // TM2020
 
  if version >= 5: // TM2020
    if version >= 6:
  −
        uint32
   
     uint32 snappedBlockCount
 
     uint32 snappedBlockCount
 
     uint32 snappedBlocks[snappedBlockCount]
 
     uint32 snappedBlocks[snappedBlockCount]
 +
    if version < 7:
 +
        uint32 snapItemGroupCount
 +
        uint32 snapItemGroups[snapItemGroupCount]
 
     if version >= 6:
 
     if version >= 6:
 
         uint32 snappedItemCount
 
         uint32 snappedItemCount
 
         uint32 snappedItems[snappedItemCount]
 
         uint32 snappedItems[snappedItemCount]
     uint32 snapItemGroupCount
+
     if version >= 7:
    uint32 snapItemGroups[snapItemGroupCount]
+
        uint32 snapItemGroupCount
 +
        uint32 snapItemGroups[snapItemGroupCount]
 
     if version != 6:
 
     if version != 6:
 
         uint32 size
 
         uint32 size
33

edits

Navigation menu