BFEVFL: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Leoetlino
imported>Leoetlino
No edit summary
Line 143: Line 143:


=== Container ===
=== Container ===
{{empty section}}
Containers are key-value mappings with keys being strings.
 
==== ContainerDataType enum ====
The following enum definition is complete and all names are official<ref>0x7101DA3EC8 in Switch 1.5.0</ref>.
 
{|class="wikitable"
! Value !! Name
|-
| 0 || Argument
|-
| 1 || Container
|-
| 2 || Int
|-
| 3 || Bool
|-
| 4 || Float
|-
| 5 || String
|-
| 6 || Wide string ("wstring")
|-
| 7 || Int array
|-
| 8 || Bool array
|-
| 9 || Float array
|-
| 10 || String array
|-
| 11 || Wstring array
|-
| 12 || Actor identifier
|}
 
==== ContainerItem ====
{|class="wikitable"
! Offset !! Type !! Description
|-
| 0x0 || ContainerDataType (u8) || Data type
|-
| 0x1 || u8 || Padding
|-
| 0x2 || u16 || Number of items
|-
| 0x4 || u32 || Padding
|-
| 0x8 || Dictionary* || Dictionary (for container types)
|-
| 0x10 || any || Data
|}
 
==== Container structure ====
The root container structure is a <code>ContainerItem</code> with the data type set to <code>Container</code>, a non-null dictionary (for item names), followed by pointers to children <code>ContainerItem</code>s.


=== Flowchart ===
=== Flowchart ===
Anonymous user

Navigation menu