include "Engine/Asset/AssetTypeID.fbs";

include "System/UUID/UUID.fbs";

namespace Flat.Bigfoot;

table AssetHeader
{
    uuid:         UUID        (required, native_inline, id: 0);
    name:         string      (required, id: 1);
    type_id:      AssetTypeID (required, native_inline, id: 2);
    type_name:    string      (required, id: 3);
    version:      uint = 0    (id: 4);
}

table Asset
{
    header: AssetHeader (required, id: 0);
    inner_asset:  [ubyte]     (required, id: 1);
}

root_type Asset;