macro data refactoring
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-16 12:48:09 -04:00
parent 142cc7d15c
commit 8e2c86397b
60 changed files with 115 additions and 113 deletions

View File

@ -1508,6 +1508,7 @@ Terrain editing/saving work
(04/16/2025) (04/16/2025)
Refactoring server classes under physics package Refactoring server classes under physics package
Refactoring server classes under entity package Refactoring server classes under entity package
Refactoring server macro data classes

View File

@ -2,7 +2,7 @@ package electrosphere.collision;
import electrosphere.client.scene.ClientWorldData; import electrosphere.client.scene.ClientWorldData;
import electrosphere.client.terrain.manager.ClientTerrainManager; import electrosphere.client.terrain.manager.ClientTerrainManager;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager; import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import org.joml.Vector3f; import org.joml.Vector3f;

View File

@ -23,8 +23,8 @@ import electrosphere.entity.state.collidable.TriGeomData;
import electrosphere.entity.state.physicssync.ClientPhysicsSyncTree; import electrosphere.entity.state.physicssync.ClientPhysicsSyncTree;
import electrosphere.entity.state.physicssync.ServerPhysicsSyncTree; import electrosphere.entity.state.physicssync.ServerPhysicsSyncTree;
import electrosphere.game.data.collidable.CollidableTemplate; import electrosphere.game.data.collidable.CollidableTemplate;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.datacell.utils.ServerEntityTagUtils; import electrosphere.server.datacell.utils.ServerEntityTagUtils;
/** /**

View File

@ -52,8 +52,6 @@ import electrosphere.game.config.UserSettings;
import electrosphere.game.data.common.CommonEntityType; import electrosphere.game.data.common.CommonEntityType;
import electrosphere.game.data.particle.ParticleDefinition; import electrosphere.game.data.particle.ParticleDefinition;
import electrosphere.game.data.voxel.VoxelType; import electrosphere.game.data.voxel.VoxelType;
import electrosphere.game.server.structure.virtual.StructureManager;
import electrosphere.game.server.world.MacroData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.net.client.ClientNetworking; import electrosphere.net.client.ClientNetworking;
import electrosphere.net.config.NetConfig; import electrosphere.net.config.NetConfig;
@ -84,6 +82,8 @@ import electrosphere.server.datacell.EntityDataCellMapper;
import electrosphere.server.datacell.RealmManager; import electrosphere.server.datacell.RealmManager;
import electrosphere.server.db.DatabaseController; import electrosphere.server.db.DatabaseController;
import electrosphere.server.entity.poseactor.PoseModel; import electrosphere.server.entity.poseactor.PoseModel;
import electrosphere.server.macro.MacroData;
import electrosphere.server.macro.structure.virtual.StructureManager;
import electrosphere.server.pathfinding.NavMeshManager; import electrosphere.server.pathfinding.NavMeshManager;
import electrosphere.server.saves.Save; import electrosphere.server.saves.Save;
import electrosphere.server.simulation.MacroSimulation; import electrosphere.server.simulation.MacroSimulation;

View File

@ -17,10 +17,10 @@ import electrosphere.engine.loadingthreads.LoadingThread;
import electrosphere.engine.loadingthreads.LoadingThread.LoadingThreadType; import electrosphere.engine.loadingthreads.LoadingThread.LoadingThreadType;
import electrosphere.engine.signal.SynchronousSignalHandling; import electrosphere.engine.signal.SynchronousSignalHandling;
import electrosphere.engine.time.Timekeeper; import electrosphere.engine.time.Timekeeper;
import electrosphere.game.server.world.MacroData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.renderer.RenderingEngine; import electrosphere.renderer.RenderingEngine;
import electrosphere.server.MainServerFunctions; import electrosphere.server.MainServerFunctions;
import electrosphere.server.macro.MacroData;
import electrosphere.server.simulation.MacroSimulation; import electrosphere.server.simulation.MacroSimulation;

View File

@ -8,11 +8,11 @@ import electrosphere.engine.Globals;
import electrosphere.entity.state.attach.AttachUtils; import electrosphere.entity.state.attach.AttachUtils;
import electrosphere.entity.state.hitbox.HitboxCollectionState; import electrosphere.entity.state.hitbox.HitboxCollectionState;
import electrosphere.entity.types.collision.CollisionObjUtils; import electrosphere.entity.types.collision.CollisionObjUtils;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.EntityMessage; import electrosphere.net.parser.net.message.EntityMessage;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerDataCell; import electrosphere.server.datacell.ServerDataCell;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.datacell.utils.DataCellSearchUtils; import electrosphere.server.datacell.utils.DataCellSearchUtils;
import electrosphere.server.datacell.utils.EntityLookupUtils; import electrosphere.server.datacell.utils.EntityLookupUtils;
import electrosphere.server.datacell.utils.ServerBehaviorTreeUtils; import electrosphere.server.datacell.utils.ServerBehaviorTreeUtils;

View File

@ -8,8 +8,8 @@ import electrosphere.entity.EntityUtils;
import electrosphere.entity.types.common.CommonEntityUtils; import electrosphere.entity.types.common.CommonEntityUtils;
import electrosphere.entity.types.creature.CreatureUtils; import electrosphere.entity.types.creature.CreatureUtils;
import electrosphere.entity.types.item.ItemUtils; import electrosphere.entity.types.item.ItemUtils;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.datacell.gridded.GriddedDataCellManager; import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.entity.ServerContentManager; import electrosphere.server.entity.ServerContentManager;
import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator; import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator;

View File

@ -24,8 +24,8 @@ import electrosphere.game.data.units.UnitDefinitionFile;
import electrosphere.game.data.units.UnitLoader; import electrosphere.game.data.units.UnitLoader;
import electrosphere.game.data.voxel.VoxelData; import electrosphere.game.data.voxel.VoxelData;
import electrosphere.game.data.voxel.sampler.SamplerFile; import electrosphere.game.data.voxel.sampler.SamplerFile;
import electrosphere.game.server.race.model.RaceMap; import electrosphere.server.macro.race.model.RaceMap;
import electrosphere.game.server.symbolism.model.SymbolMap; import electrosphere.server.macro.symbolism.model.SymbolMap;
import electrosphere.util.FileUtils; import electrosphere.util.FileUtils;
/** /**

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.character;
public class AdvancedPersonality {
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.character;
public class BasicPersonality {
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.civilization;
public class Civilization {
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.civilization.model;
public class CivilizationMap {
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.culture;
public class Culture {
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.culture;
public class Ritual {
}

View File

@ -1,8 +0,0 @@
package electrosphere.game.server.culture.religion;
import electrosphere.game.server.character.diety.Diety;
import java.util.List;
public class Religion {
List<Diety> dietyList;
}

View File

@ -1,5 +0,0 @@
package electrosphere.game.server.settlement;
public class Settlement {
}

View File

@ -11,13 +11,13 @@ import org.joml.Vector3d;
import electrosphere.client.block.BlockChunkData; import electrosphere.client.block.BlockChunkData;
import electrosphere.client.terrain.cache.ChunkData; import electrosphere.client.terrain.cache.ChunkData;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.TerrainMessage; import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.net.server.ServerConnectionHandler; import electrosphere.net.server.ServerConnectionHandler;
import electrosphere.net.server.player.Player; import electrosphere.net.server.player.Player;
import electrosphere.net.template.ServerProtocolTemplate; import electrosphere.net.template.ServerProtocolTemplate;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk; import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.editing.TerrainEditing; import electrosphere.server.physics.terrain.editing.TerrainEditing;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk; import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;

View File

@ -6,7 +6,6 @@ import electrosphere.collision.hitbox.HitboxManager;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.entity.Entity; import electrosphere.entity.Entity;
import electrosphere.entity.scene.Scene; import electrosphere.entity.scene.Scene;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.net.parser.net.message.NetworkMessage; import electrosphere.net.parser.net.message.NetworkMessage;
import electrosphere.script.ScriptEngine; import electrosphere.script.ScriptEngine;
import electrosphere.server.datacell.interfaces.DataCellManager; import electrosphere.server.datacell.interfaces.DataCellManager;

View File

@ -13,7 +13,6 @@ import electrosphere.collision.CollisionWorldData;
import electrosphere.collision.hitbox.HitboxManager; import electrosphere.collision.hitbox.HitboxManager;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.entity.Entity; import electrosphere.entity.Entity;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.net.server.player.Player; import electrosphere.net.server.player.Player;
import electrosphere.server.datacell.gridded.GriddedDataCellManager; import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.entity.ServerContentManager; import electrosphere.server.entity.ServerContentManager;

View File

@ -8,10 +8,10 @@ import electrosphere.entity.types.common.CommonEntityUtils;
import electrosphere.entity.types.creature.CreatureUtils; import electrosphere.entity.types.creature.CreatureUtils;
import electrosphere.entity.types.foliage.FoliageUtils; import electrosphere.entity.types.foliage.FoliageUtils;
import electrosphere.entity.types.item.ItemUtils; import electrosphere.entity.types.item.ItemUtils;
import electrosphere.game.server.character.Character;
import electrosphere.net.parser.net.message.EntityMessage; import electrosphere.net.parser.net.message.EntityMessage;
import electrosphere.net.parser.net.message.NetworkMessage; import electrosphere.net.parser.net.message.NetworkMessage;
import electrosphere.net.server.player.Player; import electrosphere.net.server.player.Player;
import electrosphere.server.macro.character.Character;
import electrosphere.server.pathfinding.navmesh.NavMesh; import electrosphere.server.pathfinding.navmesh.NavMesh;
import java.util.HashSet; import java.util.HashSet;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.world; package electrosphere.server.datacell;
import electrosphere.client.block.BlockChunkData; import electrosphere.client.block.BlockChunkData;
import electrosphere.server.physics.block.manager.ServerBlockManager; import electrosphere.server.physics.block.manager.ServerBlockManager;

View File

@ -23,7 +23,6 @@ import electrosphere.entity.EntityCreationUtils;
import electrosphere.entity.EntityUtils; import electrosphere.entity.EntityUtils;
import electrosphere.entity.ServerEntityUtils; import electrosphere.entity.ServerEntityUtils;
import electrosphere.entity.state.server.ServerPlayerViewDirTree; import electrosphere.entity.state.server.ServerPlayerViewDirTree;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.EntityMessage; import electrosphere.net.parser.net.message.EntityMessage;
import electrosphere.net.parser.net.message.TerrainMessage; import electrosphere.net.parser.net.message.TerrainMessage;
@ -31,6 +30,7 @@ import electrosphere.net.server.player.Player;
import electrosphere.net.server.protocol.TerrainProtocol; import electrosphere.net.server.protocol.TerrainProtocol;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerDataCell; import electrosphere.server.datacell.ServerDataCell;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.datacell.interfaces.DataCellManager; import electrosphere.server.datacell.interfaces.DataCellManager;
import electrosphere.server.datacell.interfaces.VoxelCellManager; import electrosphere.server.datacell.interfaces.VoxelCellManager;
import electrosphere.server.datacell.physics.PhysicsDataCell; import electrosphere.server.datacell.physics.PhysicsDataCell;

View File

@ -1,19 +1,19 @@
package electrosphere.game.server.world; package electrosphere.server.macro;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.character.Character; import electrosphere.server.macro.character.Character;
import electrosphere.game.server.character.CharacterDataStrings; import electrosphere.server.macro.character.CharacterDataStrings;
import electrosphere.game.server.character.CharacterUtils; import electrosphere.server.macro.character.CharacterUtils;
import electrosphere.game.server.character.diety.Diety; import electrosphere.server.macro.character.diety.Diety;
import electrosphere.game.server.civilization.Civilization; import electrosphere.server.macro.civilization.Civilization;
import electrosphere.game.server.race.model.Race; import electrosphere.server.macro.race.model.Race;
import electrosphere.game.server.race.model.RaceMap; import electrosphere.server.macro.race.model.RaceMap;
import electrosphere.game.server.structure.virtual.Structure; import electrosphere.server.macro.structure.virtual.Structure;
import electrosphere.game.server.symbolism.model.Symbol; import electrosphere.server.macro.symbolism.model.Symbol;
import electrosphere.game.server.town.Town; import electrosphere.server.macro.town.Town;
import java.util.Random; import java.util.Random;
import org.joml.Vector2i; import org.joml.Vector2i;

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.character;
public class AdvancedPersonality {
}

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.character;
public class BasicPersonality {
}

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.character; package electrosphere.server.macro.character;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.character; package electrosphere.server.macro.character;
/** /**
* Data strings for characters * Data strings for characters

View File

@ -1,9 +1,10 @@
package electrosphere.game.server.character; package electrosphere.server.macro.character;
import electrosphere.server.macro.character.diety.Diety;
import electrosphere.server.macro.race.model.Race;
import electrosphere.server.macro.structure.virtual.Structure;
import electrosphere.server.macro.town.Town;
import electrosphere.game.server.character.diety.Diety;
import electrosphere.game.server.race.model.Race;
import electrosphere.game.server.structure.virtual.Structure;
import electrosphere.game.server.town.Town;
import org.joml.Vector2i; import org.joml.Vector2i;
/** /**

View File

@ -1,8 +1,8 @@
package electrosphere.game.server.character.diety; package electrosphere.server.macro.character.diety;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.symbolism.model.Symbol; import electrosphere.server.macro.symbolism.model.Symbol;
import electrosphere.game.server.symbolism.model.SymbolMap; import electrosphere.server.macro.symbolism.model.SymbolMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.civilization;
public class Civilization {
}

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.civilization.model;
public class CivilizationMap {
}

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.culture;
public class Culture {
}

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.culture;
public class Ritual {
}

View File

@ -0,0 +1,9 @@
package electrosphere.server.macro.culture.religion;
import java.util.List;
import electrosphere.server.macro.character.diety.Diety;
public class Religion {
List<Diety> dietyList;
}

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.culture.religion; package electrosphere.server.macro.culture.religion;
/** /**
* *

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.culture.religion; package electrosphere.server.macro.culture.religion;
/** /**
* Story data strings * Story data strings

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.race.model; package electrosphere.server.macro.race.model;
/** /**
* The race of a creature * The race of a creature

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.race.model; package electrosphere.server.macro.race.model;
import java.util.List; import java.util.List;

View File

@ -0,0 +1,5 @@
package electrosphere.server.macro.settlement;
public class Settlement {
}

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.structure.virtual; package electrosphere.server.macro.structure.virtual;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.structure.virtual; package electrosphere.server.macro.structure.virtual;
/** /**
* *

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.structure.virtual; package electrosphere.server.macro.structure.virtual;
import com.google.gson.Gson; import com.google.gson.Gson;

View File

@ -1,8 +1,8 @@
package electrosphere.game.server.structure.virtual; package electrosphere.server.macro.structure.virtual;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.character.Character;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.macro.character.Character;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.symbolism.model; package electrosphere.server.macro.symbolism.model;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.symbolism.model; package electrosphere.server.macro.symbolism.model;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.symbolism.model; package electrosphere.server.macro.symbolism.model;
public class SymbolismRelation { public class SymbolismRelation {
String name; String name;

View File

@ -1,8 +1,8 @@
package electrosphere.game.server.town; package electrosphere.server.macro.town;
import electrosphere.game.server.structure.virtual.Structure;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.character.Character; import electrosphere.server.macro.character.Character;
import electrosphere.server.macro.structure.virtual.Structure;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package electrosphere.game.server.town; package electrosphere.server.macro.town;
/** /**
* *

View File

@ -3,7 +3,7 @@ package electrosphere.server.physics.block.manager;
import electrosphere.client.block.BlockChunkCache; import electrosphere.client.block.BlockChunkCache;
import electrosphere.client.block.BlockChunkData; import electrosphere.client.block.BlockChunkData;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap; import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap;
import electrosphere.util.annotation.Exclude; import electrosphere.util.annotation.Exclude;

View File

@ -2,7 +2,7 @@ package electrosphere.server.physics.fluid.manager;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.fluid.diskmap.FluidDiskMap; import electrosphere.server.physics.fluid.diskmap.FluidDiskMap;
import electrosphere.server.physics.fluid.generation.FluidGenerator; import electrosphere.server.physics.fluid.generation.FluidGenerator;
import electrosphere.server.physics.fluid.models.FluidModel; import electrosphere.server.physics.fluid.models.FluidModel;

View File

@ -10,7 +10,7 @@ import org.graalvm.polyglot.Value;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData; import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams; import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen; import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator; import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.physics.terrain.generation.heightmap.HillsGen; import electrosphere.server.physics.terrain.generation.heightmap.HillsGen;

View File

@ -9,7 +9,7 @@ import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData; import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams; import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.game.data.voxel.sampler.SamplerFile; import electrosphere.game.data.voxel.sampler.SamplerFile;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen; import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator; import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapNoiseGen; import electrosphere.server.physics.terrain.generation.heightmap.HeightmapNoiseGen;

View File

@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;
import electrosphere.game.terrain.processing.TerrainInterpolator; import electrosphere.server.physics.terrain.processing.TerrainInterpolator;
/** /**
* Performs an erosion simulation that expands the heightmap and simulates drainage across the world * Performs an erosion simulation that expands the heightmap and simulates drainage across the world

View File

@ -1,6 +1,6 @@
package electrosphere.server.physics.terrain.generation.interfaces; package electrosphere.server.physics.terrain.generation.interfaces;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
/** /**
* The context the generation is happening in. Stores things like biomes to interpolate between. * The context the generation is happening in. Stores things like biomes to interpolate between.

View File

@ -3,7 +3,7 @@ package electrosphere.server.physics.terrain.manager;
import electrosphere.client.terrain.cache.ChunkData; import electrosphere.client.terrain.cache.ChunkData;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.entity.scene.RealmDescriptor; import electrosphere.entity.scene.RealmDescriptor;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.terrain.diskmap.ChunkDiskMap; import electrosphere.server.physics.terrain.diskmap.ChunkDiskMap;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator; import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator; import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;

View File

@ -1,4 +1,4 @@
package electrosphere.game.terrain.processing; package electrosphere.server.physics.terrain.processing;
public class TerrainInterpolator { public class TerrainInterpolator {

View File

@ -16,11 +16,11 @@ import electrosphere.game.data.creature.type.CreatureData;
import electrosphere.game.data.creature.type.block.BlockVariant; import electrosphere.game.data.creature.type.block.BlockVariant;
import electrosphere.game.data.item.Item; import electrosphere.game.data.item.Item;
import electrosphere.game.data.item.ItemUsage; import electrosphere.game.data.item.ItemUsage;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.InventoryMessage; import electrosphere.net.parser.net.message.InventoryMessage;
import electrosphere.net.server.ServerConnectionHandler; import electrosphere.net.server.ServerConnectionHandler;
import electrosphere.server.datacell.Realm; import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.datacell.utils.EntityLookupUtils; import electrosphere.server.datacell.utils.EntityLookupUtils;
import electrosphere.server.physics.block.editing.ServerBlockEditing; import electrosphere.server.physics.block.editing.ServerBlockEditing;
import electrosphere.server.utils.ServerScriptUtils; import electrosphere.server.utils.ServerScriptUtils;

View File

@ -6,8 +6,8 @@ import electrosphere.engine.Globals;
import electrosphere.entity.scene.RealmDescriptor; import electrosphere.entity.scene.RealmDescriptor;
import electrosphere.entity.scene.SceneFile; import electrosphere.entity.scene.SceneFile;
import electrosphere.entity.scene.SceneLoader; import electrosphere.entity.scene.SceneLoader;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.logger.LoggerInterface; import electrosphere.logger.LoggerInterface;
import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.db.DatabaseController; import electrosphere.server.db.DatabaseController;
import electrosphere.server.db.DatabaseUtils; import electrosphere.server.db.DatabaseUtils;
import electrosphere.server.physics.fluid.generation.DefaultFluidGenerator; import electrosphere.server.physics.fluid.generation.DefaultFluidGenerator;

View File

@ -1,13 +1,14 @@
package electrosphere.server.simulation; package electrosphere.server.simulation;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.game.server.structure.virtual.Structure; import electrosphere.server.macro.character.Character;
import electrosphere.game.server.town.Town; import electrosphere.server.macro.character.CharacterDataStrings;
import electrosphere.game.server.character.Character; import electrosphere.server.macro.character.CharacterUtils;
import electrosphere.game.server.character.CharacterDataStrings; import electrosphere.server.macro.structure.virtual.Structure;
import electrosphere.game.server.character.CharacterUtils; import electrosphere.server.macro.structure.virtual.StructureDataStrings;
import electrosphere.game.server.structure.virtual.StructureDataStrings; import electrosphere.server.macro.structure.virtual.VirtualStructureUtils;
import electrosphere.game.server.structure.virtual.VirtualStructureUtils; import electrosphere.server.macro.town.Town;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import org.joml.Vector2f; import org.joml.Vector2f;

View File

@ -1,6 +1,6 @@
package electrosphere.util.worldviewer; package electrosphere.util.worldviewer;
import electrosphere.game.server.world.ServerWorldData; import electrosphere.server.datacell.ServerWorldData;
import electrosphere.server.physics.terrain.generation.OverworldChunkGenerator; import electrosphere.server.physics.terrain.generation.OverworldChunkGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager; import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.models.TerrainModel; import electrosphere.server.physics.terrain.models.TerrainModel;