[nostalgia/sample_project] Add new type descriptors

This commit is contained in:
Gary Talent 2022-05-28 22:21:47 -05:00
parent d5252a45d3
commit ff473bf465
10 changed files with 63 additions and 216 deletions

View File

@ -1,108 +0,0 @@
O1;net.drinkingtea.ox.DescriptorType;1;{
"fieldList" :
[
{
"fieldName" : "bpp",
"type" :
{
"fieldList" : [],
"length" : 1,
"primitiveType" : 1,
"typeName" : "B:int8_t"
}
},
{
"fieldName" : "rows",
"type" :
{
"fieldList" : [],
"length" : 4,
"primitiveType" : 1,
"typeName" : "B:int32_t"
}
},
{
"fieldName" : "columns",
"typeName" : "B:int32_t"
},
{
"fieldName" : "defaultPalette",
"type" :
{
"fieldList" :
[
{
"fieldName" : "type",
"typeName" : "B:int8_t"
},
{
"fieldName" : "data",
"type" :
{
"fieldList" :
[
{
"fieldName" : "path",
"type" :
{
"fieldList" : [],
"primitiveType" : 4,
"typeName" : "B:string"
}
},
{
"fieldName" : "constPath",
"typeName" : "B:string"
},
{
"fieldName" : "inode",
"type" :
{
"fieldList" : [],
"length" : 8,
"typeName" : "B:uint64_t"
}
}
],
"primitiveType" : 6,
"typeName" : "net.drinkingtea.ox.FileAddress.Data"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.ox.FileAddress"
}
},
{
"fieldName" : "pal",
"type" :
{
"fieldList" :
[
{
"fieldName" : "colors",
"type" :
{
"fieldList" : [],
"length" : 2,
"typeName" : "B:uint16_t"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.nostalgia.core.NostalgiaPalette"
}
},
{
"fieldName" : "pixels",
"type" :
{
"fieldList" : [],
"length" : 1,
"typeName" : "B:uint8_t"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.nostalgia.core.NostalgiaGraphic"
}

View File

@ -1,16 +0,0 @@
O1;net.drinkingtea.ox.DescriptorType;1;{
"fieldList" :
[
{
"fieldName" : "colors",
"type" :
{
"fieldList" : [],
"length" : 2,
"typeName" : "B:uint16_t"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.nostalgia.core.NostalgiaPalette"
}

View File

@ -3,103 +3,15 @@ O1;net.drinkingtea.ox.DescriptorType;1;{
[ [
{ {
"fieldName" : "bpp", "fieldName" : "bpp",
"type" :
{
"fieldList" : [],
"length" : 1,
"primitiveType" : 1,
"typeName" : "B:int8_t" "typeName" : "B:int8_t"
}
}, },
{ {
"fieldName" : "defaultPalette", "fieldName" : "defaultPalette",
"type" :
{
"fieldList" :
[
{
"fieldName" : "type",
"typeName" : "B:int8_t"
},
{
"fieldName" : "data",
"type" :
{
"fieldList" :
[
{
"fieldName" : "path",
"type" :
{
"fieldList" : [],
"primitiveType" : 4,
"typeName" : "B:string"
}
},
{
"fieldName" : "constPath",
"typeName" : "B:string"
},
{
"fieldName" : "inode",
"type" :
{
"fieldList" : [],
"length" : 8,
"typeName" : "B:uint64_t"
}
}
],
"primitiveType" : 6,
"typeName" : "net.drinkingtea.ox.FileAddress.Data"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.ox.FileAddress" "typeName" : "net.drinkingtea.ox.FileAddress"
}
}, },
{ {
"fieldName" : "subsheet", "fieldName" : "subsheet",
"type" :
{
"fieldList" :
[
{
"fieldName" : "name",
"typeName" : "B:string"
},
{
"fieldName" : "rows",
"type" :
{
"fieldList" : [],
"length" : 4,
"primitiveType" : 1,
"typeName" : "B:int32_t"
}
},
{
"fieldName" : "columns",
"typeName" : "B:int32_t"
},
{
"fieldName" : "subsheets",
"typeName" : "net.drinkingtea.nostalgia.core.TileSheet.SubSheet" "typeName" : "net.drinkingtea.nostalgia.core.TileSheet.SubSheet"
},
{
"fieldName" : "pixels",
"type" :
{
"fieldList" : [],
"length" : 1,
"typeName" : "B:uint8_t"
}
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.nostalgia.core.TileSheet.SubSheet"
}
} }
], ],
"primitiveType" : 5, "primitiveType" : 5,

View File

@ -0,0 +1,27 @@
O1;net.drinkingtea.ox.DescriptorType;1;{
"fieldList" :
[
{
"fieldName" : "name",
"typeName" : "B:string"
},
{
"fieldName" : "rows",
"typeName" : "B:int32_t"
},
{
"fieldName" : "columns",
"typeName" : "B:int32_t"
},
{
"fieldName" : "subsheets",
"typeName" : "net.drinkingtea.nostalgia.core.TileSheet.SubSheet"
},
{
"fieldName" : "pixels",
"typeName" : "B:uint8_t"
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.nostalgia.core.TileSheet.SubSheet"
}

View File

@ -0,0 +1,14 @@
O1;net.drinkingtea.ox.DescriptorType;1;{
"fieldList" :
[
{
"fieldName" : "type",
"typeName" : "B:int8_t"
},
{
"fieldName" : "data"
}
],
"primitiveType" : 5,
"typeName" : "net.drinkingtea.ox.FileAddress"
}

View File

@ -0,0 +1,18 @@
O1;net.drinkingtea.ox.DescriptorType;1;{
"fieldList" :
[
{
"fieldName" : "path"
},
{
"fieldName" : "constPath",
"typeName" : "B:string"
},
{
"fieldName" : "inode",
"typeName" : "B:uint64_t"
}
],
"primitiveType" : 6,
"typeName" : "net.drinkingtea.ox.FileAddress.Data"
}

Binary file not shown.

View File

@ -1 +1 @@
M2;net.drinkingtea.nostalgia.core.NostalgiaPalette;1;ûÿ³Ö M2;net.drinkingtea.nostalgia.core.Palette;1;ûÿ³Ö

Binary file not shown.

Binary file not shown.