BFEVFL: Difference between revisions

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


=== Container ===
=== Container ===
Containers are key-value mappings with keys being strings.
Containers are key-value mappings with keys being strings. A [[#Dictionary]] is used to store keys.


==== ContainerDataType enum ====
==== ContainerDataType enum ====
Line 197: Line 197:
==== Container structure ====
==== 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.
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.
==== Child item structure ====
For all other data types, the dictionary pointer is null.
{|class="wikitable"
! Data type !! Data !! Number of items
|-
| Argument || String (not in string pool, follows item structure immediately) || 1
|-
| Container || ? || ?
|-
| Int || Signed 32-bit integer || 1
|-
| Bool || 0x80000001 if true, 0x00000000 otherwise || 1
|-
| Float || binary32 floating point number || 1
|-
| String || String (not in string pool, follows item structure immediately) || 1
|-
| Wide string ("wstring") || (not implemented) || ?
|-
| Int array || Int[n] || n
|-
| Bool array || Bool[n] || n
|-
| Float array || Float[n] || n
|-
| String array || String[n] (aligned to 8-byte boundaries this time) || n
|-
| Wstring array || (not implemented) || ?
|-
| Actor identifier || Two strings: actor name + secondary name || 2
|}


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

Navigation menu