32 lines
671 B
C
32 lines
671 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "error/error.h"
|
|
|
|
#pragma pack(push, 1)
|
|
typedef struct {
|
|
char_t header[3];
|
|
uint8_t version;
|
|
uint16_t tileWidth;
|
|
uint16_t tileHeight;
|
|
uint16_t columnCount;
|
|
uint16_t rowCount;
|
|
uint16_t right;
|
|
uint16_t bottom;
|
|
float_t u0;
|
|
float_t v0;
|
|
} assettileset_t;
|
|
#pragma pack(pop)
|
|
|
|
/**
|
|
* Loads a tileset from the given data pointer into the output tileset.
|
|
*
|
|
* @param entire Data received from the asset loader system.
|
|
* @return An error code.
|
|
*/
|
|
errorret_t assetTilesetLoad(assetentire_t entire); |