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:
parent
ea0bfb350b
commit
bdb2d9577f
24 changed files with 619 additions and 404 deletions
|
|
@ -43,7 +43,6 @@ interface MapChunkPosition {
|
|||
}
|
||||
|
||||
interface MapTile {
|
||||
objectName: string;
|
||||
position: MapTilePosition;
|
||||
prototypeName: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "kafkatorio-events-mod",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "kafkatorio-events-mod",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tstl",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue