-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation and add gsheet docs
- Loading branch information
Showing
5 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
###### | ||
gsheet | ||
###### | ||
|
||
``#include <oead/gsheet.h>`` | ||
|
||
For more information about Grezzo datasheets, `refer to the wiki article <https://zeldamods.org/las/Datasheet>`_. | ||
|
||
Read-only API and binary format structs | ||
======================================= | ||
|
||
This API is used to read binary datasheets efficiently. | ||
|
||
In line with Nintendo's naming conventions, structs that are directly used in the binary format have a `Res` prefix in their name. | ||
|
||
.. doxygenstruct:: oead::gsheet::ResHeader | ||
.. doxygenstruct:: oead::gsheet::ResField | ||
.. doxygenclass:: oead::gsheet::Sheet | ||
.. doxygentypedef:: oead::gsheet::FieldMap | ||
.. doxygenfunction:: oead::gsheet::MakeFieldMap | ||
|
||
Utilities for defining datasheet structures | ||
------------------------------------------- | ||
|
||
These are useful to define structures which datasheet values can be casted to. | ||
|
||
.. doxygenstruct:: oead::gsheet::Nullable | ||
.. doxygenstruct:: oead::gsheet::Array | ||
.. doxygenstruct:: oead::gsheet::String | ||
|
||
Read-write API | ||
============== | ||
|
||
This API is used to read, modify and write binary datasheets. Datasheets can also be constructed from scratch. | ||
|
||
.. doxygenstruct:: oead::gsheet::Field | ||
.. doxygenstruct:: oead::gsheet::Data | ||
.. doxygenstruct:: oead::gsheet::SheetRw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
############### | ||
gsheet (Python) | ||
############### | ||
|
||
For more information about Grezzo datasheets, `refer to the wiki article <https://zeldamods.org/las/Datasheet>`_. | ||
|
||
.. autoclass:: oead.gsheet.Struct | ||
|
||
Lists | ||
===== | ||
|
||
These classes work like Python lists, but they can only store elements of a single type, i.e. all elements must be booleans, or all strings, etc. | ||
|
||
.. class:: oead.gsheet.StructArray | ||
.. autoclass:: oead.gsheet.BoolArray | ||
.. autoclass:: oead.gsheet.IntArray | ||
.. autoclass:: oead.gsheet.FloatArray | ||
.. autoclass:: oead.gsheet.StringArray | ||
|
||
Read-write API | ||
============== | ||
|
||
This API is used to read, modify and write binary datasheets. Datasheets can also be constructed from scratch. | ||
|
||
.. autoclass:: oead.gsheet.Field | ||
.. autoclass:: oead.gsheet.Sheet | ||
.. autofunction:: oead.gsheet.parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ oead | |
aamp_py | ||
byml | ||
byml_py | ||
gsheet | ||
gsheet_py | ||
sarc | ||
sarc_py | ||
yaz0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters