so close to working performantly.... just the tiles are transparent???

- bump some versions
- MapTile no longer has objectName field
- fix nulls/optional fields in FactorioConfigurationUpdate
- use bytes to encode rgba colours - waaaayyyy smaller
- increase Kafka record size to ~10mb
This commit is contained in:
Adam 2022-02-08 01:35:52 +01:00
parent ea0bfb350b
commit bdb2d9577f
24 changed files with 619 additions and 404 deletions

View file

@ -43,7 +43,6 @@ interface MapChunkPosition {
}
interface MapTile {
objectName: string;
position: MapTilePosition;
prototypeName: string;
}

View file

@ -98,8 +98,6 @@ export namespace Converters {
export function convertTile(tile: LuaTile): MapTile {
return {
objectName: tile.object_name,
position: mapTilePosition(tile.position),
prototypeName: tile.prototype.name,
}

View file

@ -92,8 +92,7 @@ export function handleTilesUpdate(
let convertedTiles: MapTile[] = updatedTiles.map((it) => {
return {
objectName: "LuaTile",
position: it.position,
position: it.position, // TODO use converters for LuaTile
prototypeName: newTileType.name,
}
})

View file

@ -1,6 +1,6 @@
{
"name": "kafkatorio-events-mod",
"version": "0.2.7",
"version": "0.2.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,6 +1,6 @@
{
"name": "kafkatorio-events-mod",
"version": "0.2.7",
"version": "0.2.8",
"private": true,
"scripts": {
"build": "tstl",