mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 13:51:53 +09:00
65536 Blocks!!!
This commit is contained in:
@@ -6,12 +6,12 @@ package net.torvald.terrarum
|
||||
*/
|
||||
object ReferencingRanges {
|
||||
|
||||
val TILES = 0..4095
|
||||
val WALLS = 4096..8191
|
||||
val WIRES = 8192..8447
|
||||
val ITEMS_STATIC = 8448..0x0F_FFFF
|
||||
val ITEMS_DYNAMIC = 0x10_0000..0x0FFF_FFFF
|
||||
val ACTORS = 0x1000_0000..0x7FFF_FFFF
|
||||
val TILES = 0..65535 // 65 536 blocks
|
||||
val WALLS = 65536..131071 // 65 536 walls
|
||||
val WIRES = 131072..135167 // 4 096 wires
|
||||
val ITEMS_STATIC = 135168..0x0F_FFFF // 913 408 items
|
||||
val ITEMS_DYNAMIC = 0x10_0000..0x0FFF_FFFF // 267 386 880 pseudo-items
|
||||
val ACTORS = 0x1000_0000..0x7FFF_FFFF // too much actors
|
||||
|
||||
// Actor IDs are assigned in 256 groups, single actor can have 256 sub-actors
|
||||
val ACTORS_BEHIND = 0x1000_0000..0x1FFF_FFFF // Rendered behind (e.g. tapestries)
|
||||
|
||||
@@ -12,7 +12,7 @@ public class TerrarumAppConfiguration {
|
||||
//////////////////////////////////////
|
||||
|
||||
public static final String GAME_NAME = "Terrarum";
|
||||
public static final String COPYRIGHT_DATE_NAME = "Copyright 2013-2020 Torvald (minjaesong)";
|
||||
public static final String COPYRIGHT_DATE_NAME = "Copyright 2013-2021 Torvald (minjaesong)";
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
||||
@@ -22,7 +22,7 @@ object BlockCodex {
|
||||
|
||||
val dynamicLights = SortedArrayList<Int>() // does not include virtual ones
|
||||
|
||||
/** 4096 */
|
||||
/** 65536 */
|
||||
val MAX_TERRAIN_TILES = GameWorld.TILES_SUPPORTED
|
||||
|
||||
private val nullProp = BlockProp()
|
||||
|
||||
@@ -2,6 +2,7 @@ package net.torvald.terrarum.modulebasegame.gameactors
|
||||
|
||||
import net.torvald.terrarum.ModMgr
|
||||
import net.torvald.terrarum.blockproperties.BlockCodex
|
||||
import net.torvald.terrarum.blockproperties.BlockCodex.MAX_TERRAIN_TILES
|
||||
import net.torvald.terrarum.gameactors.AVKey
|
||||
import net.torvald.terrarum.gameactors.faction.FactionFactory
|
||||
import net.torvald.terrarum.worlddrawer.CreateTileAtlas
|
||||
@@ -78,19 +79,19 @@ object PlayerBuilderSigrid {
|
||||
CreateTileAtlas.tags.forEach { t, _ ->
|
||||
inventory.add(t, 9995)
|
||||
if (BlockCodex[t].isWallable) {
|
||||
inventory.add(t + 4096, 9995)
|
||||
inventory.add(t + MAX_TERRAIN_TILES, 9995)
|
||||
}
|
||||
}
|
||||
|
||||
// item ids are defined in <module>/items/itemid.csv
|
||||
|
||||
inventory.add(8448, 16) // copper pick
|
||||
inventory.add(8449) // iron pick
|
||||
inventory.add(8450) // steel pick
|
||||
inventory.add(8466, 9995) // wire piece
|
||||
inventory.add(8467, 385930603) // test tiki torch
|
||||
inventory.add(8468, 95) // crafting table
|
||||
inventory.add(9000) // TEST water bucket
|
||||
inventory.add(9001) // TEST lava bucket
|
||||
inventory.add(135168, 16) // copper pick
|
||||
inventory.add(135169) // iron pick
|
||||
inventory.add(135170) // steel pick
|
||||
inventory.add(135171, 9995) // wire piece
|
||||
inventory.add(135172, 385930603) // test tiki torch
|
||||
inventory.add(135173, 95) // crafting table
|
||||
//inventory.add(9000) // TEST water bucket
|
||||
//inventory.add(9001) // TEST lava bucket
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user