Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory Descriptions #108

Open
inspectredc opened this issue Apr 25, 2024 · 1 comment
Open

Factory Descriptions #108

inspectredc opened this issue Apr 25, 2024 · 1 comment

Comments

@inspectredc
Copy link
Contributor

inspectredc commented Apr 25, 2024

I think with each factory some documentation for an example yaml (or something which achieves the same purpose, e.g. doxygen comments) which explain the params which are required and are available for the factory. I'm not too familiar with documenting formats but have given an attempt at what I hope is a good example below. If we keep a 'fill in the blanks' example in the example factory then this will be easier to encourage people to use when creating factories.

/*
 * Factory: VtxFactory
 *
 * -- Required --
 * @node name: - specifies the name of the asset node/file, typically this should match the symbol field
 * @field type: - specifies the type of factory. must be `VTX` for this factory
 * @field count: - specifies the number of vertices in the vertex array
 * @field offset: - specifies the offset of the asset in the file. vram offsets require additional fields in the config
 * @field symbol: - specifies the symbol used in the code for this asset, typically this should match the node name
 * 
 * asset_seg7_vertex_0702A948:
 *   type: VTX
 *   count: 4
 *   offset: 0x2A948
 *   symbol: asset_seg7_vertex_0702A948
 *
 */
@MegaMech
Copy link
Contributor

MegaMech commented Jun 2, 2024

I second this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants