Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
component:inventory_slots [2018/09/27 02:50]
payonel
component:inventory_slots [2018/09/27 03:02] (current)
payonel
Line 3: Line 3:
 ===Internal versus External Slot Alignment=== ===Internal versus External Slot Alignment===
  
-*Slot indexes do not match between the robot'​s internal and external view of its inventory.*+**Slot indexes do not match between the robot'​s internal and external view of its inventory**
  
 When a robot interacts with its own inventory it is using its internal view. You access the inventory of another robot via its external view. When a robot interacts with its own inventory it is using its internal view. You access the inventory of another robot via its external view.
Line 23: Line 23:
 ===External View of a Robot Inventory=== ===External View of a Robot Inventory===
  
-Slot indexes of a robot'​s inventory to an outside observer will be offset by 4. To an outside observer, slots 1 through 4 refer to slots in the robot toolbelt. ​Thus slot 5 to an outside observer ​is slot 1 from the robot's perspective. Yes, this can be confusing at first. This design choice was made so that, to an outside observer, [slot 1] always indicated the first tool item regardless of the robot inventory size, and [slot 5] was always the first.+Slot indexes of a robot'​s inventory to an outside observer will be offset by 4. To an outside observer, slots 1 through 4 refer to slots in the robot toolbelt. ​The first slot of the main inventory ​is slot 1 from inside ​the robot (internal view), but is thus slot 5 to an outside observer. Yes, this can be confusing at first. This design choice was made so that, to an outside observer, [slot 1] always indicated the first toolbelt slot regardless of the robot inventory size, and [slot 5] was always the first main inventory slot. 
 + 
 +The robot inventory, again to an external observer, is sided inventory. The robot will not share all its inventory to all sides. Slot indexes __do not__ change to these different sides. Slot 1, therefore, always refers to the first toolbelt slot, even when inaccessible to a side. 
 + 
 +* From its left side it share nothing. 
 +* From its right side it shares only its toolbelt slots (1-5) 
 +* From all other sides it shares only its main inventory slots (5-n)