server class refactoring
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ef067a0d34
commit
522910b64f
@ -1505,6 +1505,9 @@ Fix dig script function
|
||||
Fix shovel functionality
|
||||
Terrain editing/saving work
|
||||
|
||||
(04/16/2025)
|
||||
Refactoring server classes under physics package
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ package electrosphere.client.block;
|
||||
|
||||
import org.joml.Vector3i;
|
||||
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Stores data about a chunk of blocks
|
||||
|
||||
@ -19,8 +19,8 @@ import electrosphere.entity.Entity;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.renderer.meshgen.BlockMeshgen.BlockMeshData;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.util.math.HashUtils;
|
||||
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ import electrosphere.entity.ClientEntityUtils;
|
||||
import electrosphere.entity.Entity;
|
||||
import electrosphere.entity.btree.BehaviorTree;
|
||||
import electrosphere.entity.types.terrain.BlockChunkEntity;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
|
||||
import electrosphere.util.math.GeomUtils;
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import java.nio.FloatBuffer;
|
||||
import org.joml.Vector3i;
|
||||
import org.lwjgl.BufferUtils;
|
||||
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
|
||||
/**
|
||||
* A container of data about a chunk of fluid
|
||||
|
||||
@ -13,8 +13,8 @@ import electrosphere.entity.Entity;
|
||||
import electrosphere.entity.EntityDataStrings;
|
||||
import electrosphere.entity.types.fluid.FluidChunk;
|
||||
import electrosphere.renderer.shader.VisualShader;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -14,7 +14,7 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.entity.EntityUtils;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.renderer.shader.VisualShader;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -19,8 +19,8 @@ import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.renderer.meshgen.FluidChunkModelGeneration;
|
||||
import electrosphere.renderer.model.Model;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
|
||||
/**
|
||||
* Manages fluid storage and access on the client
|
||||
|
||||
@ -4,7 +4,7 @@ import org.joml.Vector3d;
|
||||
import org.joml.Vector3f;
|
||||
import org.joml.Vector3i;
|
||||
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Client's data on the world
|
||||
|
||||
@ -9,7 +9,7 @@ import electrosphere.client.terrain.editing.TerrainEditing;
|
||||
import electrosphere.collision.CollisionEngine;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.entity.Entity;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Utilities for interacting with voxels from the client
|
||||
|
||||
@ -5,7 +5,7 @@ import java.util.Set;
|
||||
|
||||
import org.joml.Vector3i;
|
||||
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* A container of data about a chunk of terrain
|
||||
|
||||
@ -14,7 +14,7 @@ import electrosphere.entity.btree.BehaviorTree;
|
||||
import electrosphere.entity.types.terrain.TerrainChunk;
|
||||
import electrosphere.renderer.meshgen.TransvoxelModelGeneration;
|
||||
import electrosphere.renderer.meshgen.TransvoxelModelGeneration.TransvoxelChunkData;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
|
||||
import electrosphere.util.math.GeomUtils;
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.entity.EntityUtils;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.renderer.shader.VisualShader;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
@Deprecated
|
||||
/**
|
||||
|
||||
@ -16,8 +16,8 @@ import electrosphere.entity.ClientEntityUtils;
|
||||
import electrosphere.entity.Entity;
|
||||
import electrosphere.entity.btree.BehaviorTree;
|
||||
import electrosphere.renderer.buffer.HomogenousUniformBuffer.HomogenousBufferTypes;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.renderer.buffer.ShaderAttribute;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
|
||||
import electrosphere.util.math.GeomUtils;
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.entity.EntityUtils;
|
||||
import electrosphere.game.data.foliage.type.FoliageType;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.ds.octree.WorldOctTree;
|
||||
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
|
||||
import electrosphere.util.math.GeomUtils;
|
||||
|
||||
@ -28,7 +28,7 @@ import electrosphere.entity.types.common.CommonEntityUtils;
|
||||
import electrosphere.game.data.foliage.type.FoliageType;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.renderer.actor.instance.TextureInstancedActor;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Generates a foliage model
|
||||
|
||||
@ -30,8 +30,8 @@ import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.renderer.meshgen.TransvoxelModelGeneration;
|
||||
import electrosphere.renderer.model.Model;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.util.math.HashUtils;
|
||||
|
||||
/**
|
||||
|
||||
@ -5,8 +5,8 @@ import electrosphere.client.fluid.manager.ClientFluidManager;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.fluid.manager.ServerFluidManager;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
|
||||
import imgui.ImGui;
|
||||
|
||||
/**
|
||||
|
||||
@ -5,8 +5,8 @@ import electrosphere.engine.signal.Signal.SignalType;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
|
||||
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
|
||||
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
import imgui.ImGui;
|
||||
import imgui.type.ImInt;
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import electrosphere.renderer.ui.imgui.ImGuiLinePlot;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiLinePlot.ImGuiLinePlotDataset;
|
||||
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
|
||||
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
|
||||
import imgui.ImGui;
|
||||
|
||||
/**
|
||||
|
||||
@ -3,7 +3,7 @@ package electrosphere.collision;
|
||||
import electrosphere.client.scene.ClientWorldData;
|
||||
import electrosphere.client.terrain.manager.ClientTerrainManager;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
|
||||
import org.joml.Vector3f;
|
||||
|
||||
|
||||
@ -13,8 +13,8 @@ import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.net.server.ServerConnectionHandler;
|
||||
import electrosphere.renderer.ui.elements.Window;
|
||||
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.saves.SaveUtils;
|
||||
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
|
||||
|
||||
/**
|
||||
* Loads the chunk generation testing realm
|
||||
|
||||
@ -3,7 +3,7 @@ package electrosphere.entity.scene;
|
||||
import java.util.Objects;
|
||||
|
||||
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
|
||||
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
|
||||
|
||||
/**
|
||||
* Generates scene files where appropriate (ie, if playing the procedurally generated level)
|
||||
|
||||
@ -12,8 +12,8 @@ import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.content.ServerContentManager;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
|
||||
import electrosphere.server.terrain.generation.DefaultChunkGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.FileUtils;
|
||||
|
||||
/**
|
||||
|
||||
@ -4,9 +4,9 @@ import java.io.File;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperoatorInvoke;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperoatorInvoke;
|
||||
import electrosphere.util.FileUtils;
|
||||
|
||||
/**
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
package electrosphere.game.server.world;
|
||||
|
||||
import electrosphere.client.block.BlockChunkData;
|
||||
import electrosphere.server.block.manager.ServerBlockManager;
|
||||
import electrosphere.server.fluid.generation.DefaultFluidGenerator;
|
||||
import electrosphere.server.fluid.manager.ServerFluidManager;
|
||||
import electrosphere.server.terrain.generation.DefaultChunkGenerator;
|
||||
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.block.manager.ServerBlockManager;
|
||||
import electrosphere.server.physics.fluid.generation.DefaultFluidGenerator;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
|
||||
import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
import electrosphere.util.FileUtils;
|
||||
|
||||
import org.joml.Vector3d;
|
||||
|
||||
@ -18,9 +18,9 @@ import electrosphere.net.server.ServerConnectionHandler;
|
||||
import electrosphere.net.server.player.Player;
|
||||
import electrosphere.net.template.ServerProtocolTemplate;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.terrain.editing.TerrainEditing;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.terrain.editing.TerrainEditing;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Server handling for terrain network messages
|
||||
|
||||
@ -16,7 +16,7 @@ import electrosphere.renderer.model.Material;
|
||||
import electrosphere.renderer.model.Mesh;
|
||||
import electrosphere.renderer.model.Model;
|
||||
import electrosphere.renderer.shader.VisualShader;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import static org.lwjgl.opengl.GL30.glBindVertexArray;
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.renderer.model.Material;
|
||||
import electrosphere.renderer.model.Mesh;
|
||||
import electrosphere.renderer.model.Model;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
public class TerrainChunkModelGeneration {
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ import electrosphere.mem.VectorPool;
|
||||
import electrosphere.renderer.model.Material;
|
||||
import electrosphere.renderer.model.Mesh;
|
||||
import electrosphere.renderer.model.Model;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Utility functions for generating transvoxel based meshes
|
||||
|
||||
@ -11,7 +11,7 @@ import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeFoliageDescription;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.datacell.ServerDataCell;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import io.github.studiorailgun.NoiseUtils;
|
||||
|
||||
/**
|
||||
|
||||
@ -15,11 +15,11 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.entity.Entity;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.net.server.player.Player;
|
||||
import electrosphere.server.chemistry.ServerChemistryCollisionCallback;
|
||||
import electrosphere.server.collision.ServerHitboxResolutionCallback;
|
||||
import electrosphere.server.content.ServerContentManager;
|
||||
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
|
||||
import electrosphere.server.fluid.simulator.FluidAcceleratedSimulator;
|
||||
import electrosphere.server.physics.chemistry.ServerChemistryCollisionCallback;
|
||||
import electrosphere.server.physics.collision.ServerHitboxResolutionCallback;
|
||||
import electrosphere.server.physics.fluid.simulator.FluidAcceleratedSimulator;
|
||||
|
||||
/**
|
||||
* Manages all realms for the engine. Should be a singleton
|
||||
|
||||
@ -29,7 +29,6 @@ import electrosphere.net.parser.net.message.EntityMessage;
|
||||
import electrosphere.net.parser.net.message.TerrainMessage;
|
||||
import electrosphere.net.server.player.Player;
|
||||
import electrosphere.net.server.protocol.TerrainProtocol;
|
||||
import electrosphere.server.block.manager.ServerBlockManager;
|
||||
import electrosphere.server.content.ServerContentManager;
|
||||
import electrosphere.server.content.serialization.ContentSerialization;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
@ -37,12 +36,13 @@ import electrosphere.server.datacell.ServerDataCell;
|
||||
import electrosphere.server.datacell.interfaces.DataCellManager;
|
||||
import electrosphere.server.datacell.interfaces.VoxelCellManager;
|
||||
import electrosphere.server.datacell.physics.PhysicsDataCell;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.fluid.manager.ServerFluidManager;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.block.manager.ServerBlockManager;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
import electrosphere.util.math.HashUtils;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Implementation of DataCellManager that lays out cells in a logical grid (array). Useful for eg 3d terrain gridded world.
|
||||
|
||||
@ -3,8 +3,8 @@ package electrosphere.server.datacell.interfaces;
|
||||
import org.joml.Vector3i;
|
||||
|
||||
import electrosphere.client.block.BlockChunkData;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Extension of a DataCellManager that provides voxel terrain access and editing functions
|
||||
|
||||
@ -3,7 +3,7 @@ package electrosphere.server.datacell.physics;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.renderer.shader.VisualShader;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
@ -11,7 +11,7 @@ import electrosphere.entity.types.terrain.TerrainChunk;
|
||||
import electrosphere.renderer.meshgen.BlockMeshgen;
|
||||
import electrosphere.renderer.meshgen.BlockMeshgen.BlockMeshData;
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import org.joml.Vector3i;
|
||||
import org.ode4j.ode.DBody;
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
package electrosphere.server.entitygroup;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import electrosphere.entity.Entity;
|
||||
|
||||
public class EntityGroup {
|
||||
|
||||
List<Entity> members;
|
||||
|
||||
public EntityGroup(){
|
||||
members = new LinkedList<Entity>();
|
||||
}
|
||||
|
||||
public void addMember(Entity newMember){
|
||||
members.add(newMember);
|
||||
}
|
||||
|
||||
public List<Entity> getMemebers(){
|
||||
return members;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
package electrosphere.server.pathfinding;
|
||||
|
||||
import electrosphere.server.pathfinding.navmesh.NavMesh;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
@ -3,7 +3,7 @@ package electrosphere.server.pathfinding;
|
||||
import electrosphere.server.pathfinding.blocker.NavBlocker;
|
||||
import electrosphere.server.pathfinding.blocker.NavTerrainBlockerCache;
|
||||
import electrosphere.server.pathfinding.navmesh.NavMesh;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
|
||||
@ -6,7 +6,7 @@ import electrosphere.server.pathfinding.blocker.NavBlocker;
|
||||
import electrosphere.server.pathfinding.navmesh.NavCube;
|
||||
import electrosphere.server.pathfinding.navmesh.NavMesh;
|
||||
import electrosphere.server.pathfinding.navmesh.NavShape;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package electrosphere.server.pathfinding.blocker;
|
||||
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.block.diskmap;
|
||||
package electrosphere.server.physics.block.diskmap;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.block.editing;
|
||||
package electrosphere.server.physics.block.editing;
|
||||
|
||||
import org.joml.Vector3i;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.block.manager;
|
||||
package electrosphere.server.physics.block.manager;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
@ -7,7 +7,7 @@ import electrosphere.client.block.BlockChunkCache;
|
||||
import electrosphere.client.block.BlockChunkData;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.block.diskmap.ServerBlockChunkDiskMap;
|
||||
import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap;
|
||||
|
||||
/**
|
||||
* A job that fetches a chunk, either by generating it or by reading it from disk
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.block.manager;
|
||||
package electrosphere.server.physics.block.manager;
|
||||
|
||||
import electrosphere.client.block.BlockChunkCache;
|
||||
import electrosphere.client.block.BlockChunkData;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.block.diskmap.ServerBlockChunkDiskMap;
|
||||
import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap;
|
||||
import electrosphere.util.annotation.Exclude;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.chemistry;
|
||||
package electrosphere.server.physics.chemistry;
|
||||
|
||||
import org.joml.Vector3d;
|
||||
import org.ode4j.ode.DContactGeom;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.collision;
|
||||
package electrosphere.server.physics.collision;
|
||||
|
||||
import org.joml.Vector3d;
|
||||
import org.ode4j.ode.DContactGeom;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.fluid.diskmap;
|
||||
package electrosphere.server.physics.fluid.diskmap;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@ -11,8 +11,8 @@ import java.util.zip.InflaterOutputStream;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.FileUtils;
|
||||
|
||||
/**
|
||||
@ -1,7 +1,7 @@
|
||||
package electrosphere.server.fluid.generation;
|
||||
package electrosphere.server.physics.fluid.generation;
|
||||
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.fluid.models.FluidModel;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.models.FluidModel;
|
||||
|
||||
public class DefaultFluidGenerator implements FluidGenerator {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package electrosphere.server.fluid.generation;
|
||||
package electrosphere.server.physics.fluid.generation;
|
||||
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.fluid.models.FluidModel;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.models.FluidModel;
|
||||
|
||||
/**
|
||||
* Generates fluid
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.fluid.manager;
|
||||
package electrosphere.server.physics.fluid.manager;
|
||||
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
@ -1,15 +1,15 @@
|
||||
package electrosphere.server.fluid.manager;
|
||||
package electrosphere.server.physics.fluid.manager;
|
||||
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.fluid.diskmap.FluidDiskMap;
|
||||
import electrosphere.server.fluid.generation.FluidGenerator;
|
||||
import electrosphere.server.fluid.models.FluidModel;
|
||||
import electrosphere.server.fluid.simulator.FluidAcceleratedSimulator;
|
||||
import electrosphere.server.fluid.simulator.ServerFluidSimulator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.server.physics.fluid.diskmap.FluidDiskMap;
|
||||
import electrosphere.server.physics.fluid.generation.FluidGenerator;
|
||||
import electrosphere.server.physics.fluid.models.FluidModel;
|
||||
import electrosphere.server.physics.fluid.simulator.FluidAcceleratedSimulator;
|
||||
import electrosphere.server.physics.fluid.simulator.ServerFluidSimulator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
|
||||
import electrosphere.util.FileUtils;
|
||||
import electrosphere.util.annotation.Exclude;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.fluid.models;
|
||||
package electrosphere.server.physics.fluid.models;
|
||||
|
||||
import electrosphere.util.annotation.Exclude;
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.fluid.simulator;
|
||||
package electrosphere.server.physics.fluid.simulator;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
|
||||
/**
|
||||
* A c-accelerated fluid simulator
|
||||
@ -1,8 +1,8 @@
|
||||
package electrosphere.server.fluid.simulator;
|
||||
package electrosphere.server.physics.fluid.simulator;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
|
||||
/**
|
||||
* Simulates server fluid chunks via cellular automata
|
||||
@ -1,8 +1,8 @@
|
||||
package electrosphere.server.fluid.simulator;
|
||||
package electrosphere.server.physics.fluid.simulator;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import electrosphere.server.fluid.manager.ServerFluidChunk;
|
||||
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
|
||||
|
||||
/**
|
||||
* A system capable of simulating a server fluid chunk for a single frame
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.diskmap;
|
||||
package electrosphere.server.physics.terrain.diskmap;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
@ -16,8 +16,8 @@ import java.util.zip.InflaterOutputStream;
|
||||
import electrosphere.client.terrain.cache.ChunkData;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.saves.SaveUtils;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.util.FileUtils;
|
||||
import electrosphere.util.annotation.Exclude;
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
package electrosphere.server.terrain.editing;
|
||||
package electrosphere.server.physics.terrain.editing;
|
||||
|
||||
import org.joml.Vector3d;
|
||||
import org.joml.Vector3i;
|
||||
|
||||
import electrosphere.server.datacell.Realm;
|
||||
import electrosphere.server.datacell.interfaces.VoxelCellManager;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
|
||||
/**
|
||||
* Provides utilities for editing terrain (particularly brushes, etc)
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation;
|
||||
package electrosphere.server.physics.terrain.generation;
|
||||
|
||||
import electrosphere.client.terrain.cache.ChunkData;
|
||||
import electrosphere.entity.scene.RealmDescriptor;
|
||||
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* An arena terrain chunk generator
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation;
|
||||
package electrosphere.server.physics.terrain.generation;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@ -11,19 +11,19 @@ import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.terrain.generation.heightmap.EmptySkyGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.HeightmapGenerator;
|
||||
import electrosphere.server.terrain.generation.heightmap.HillsGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.MountainGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.PlainsGen;
|
||||
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.terrain.generation.voxelphase.AnimeMountainsGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.HillsVoxelGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.MountainVoxelGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.VoxelGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.HillsGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.MountainGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.PlainsGen;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.AnimeMountainsGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.HillsVoxelGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.MountainVoxelGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.VoxelGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* Dedicated script-based chunk generator
|
||||
@ -1,12 +1,12 @@
|
||||
package electrosphere.server.terrain.generation;
|
||||
package electrosphere.server.physics.terrain.generation;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import electrosphere.client.terrain.cache.ChunkData;
|
||||
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* Chunk generator for overworld chunks
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation;
|
||||
package electrosphere.server.physics.terrain.generation;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@ -10,22 +10,22 @@ import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
|
||||
import electrosphere.game.data.voxel.sampler.SamplerFile;
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
import electrosphere.server.terrain.generation.heightmap.EmptySkyGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.HeightmapGenerator;
|
||||
import electrosphere.server.terrain.generation.heightmap.HeightmapNoiseGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.HillsGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.MountainGen;
|
||||
import electrosphere.server.terrain.generation.heightmap.PlainsGen;
|
||||
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
|
||||
import electrosphere.server.terrain.generation.voxelphase.AnimeMountainsGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.HillsVoxelGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.MountainVoxelGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.NoiseVoxelGen;
|
||||
import electrosphere.server.terrain.generation.voxelphase.VoxelGenerator;
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapNoiseGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.HillsGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.MountainGen;
|
||||
import electrosphere.server.physics.terrain.generation.heightmap.PlainsGen;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.AnimeMountainsGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.HillsVoxelGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.MountainVoxelGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.NoiseVoxelGen;
|
||||
import electrosphere.server.physics.terrain.generation.voxelphase.VoxelGenerator;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
import io.github.studiorailgun.MathUtils;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
/**
|
||||
* Contains information about a continent
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
@ -154,7 +154,7 @@ class TectonicSimulation {
|
||||
for(int x = 0; x < DIMENSION; x++){
|
||||
for(int y = 0; y < DIMENSION; y++){
|
||||
if(asthenosphereHeat[x][y] > 25){
|
||||
if(electrosphere.server.terrain.generation.continentphase.Utilities.random_Integer(1, 10, rand) == 10){
|
||||
if(electrosphere.server.physics.terrain.generation.continentphase.Utilities.random_Integer(1, 10, rand) == 10){
|
||||
elevation[x][y] = elevation[x][y] + 1;
|
||||
if(elevation[x][y] > 100){
|
||||
elevation[x][y] = 100;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.KeyListener;
|
||||
@ -14,7 +14,7 @@ import java.util.Random;
|
||||
import javax.swing.JFrame;
|
||||
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.io.BufferedReader;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.continentphase;
|
||||
package electrosphere.server.physics.terrain.generation.continentphase;
|
||||
|
||||
/**
|
||||
* Int based 2 dimension vector
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
public class EmptySkyGen implements HeightmapGenerator {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
/**
|
||||
* Generates height values for terrain
|
||||
@ -1,7 +1,7 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
import electrosphere.game.data.voxel.sampler.SamplerFile;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
/**
|
||||
* Generates a heightmap using a noise definition
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
import io.github.studiorailgun.NoiseUtils;
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.heightmap;
|
||||
package electrosphere.server.physics.terrain.generation.heightmap;
|
||||
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package electrosphere.server.terrain.generation.interfaces;
|
||||
package electrosphere.server.physics.terrain.generation.interfaces;
|
||||
|
||||
import electrosphere.server.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* An interface for generating chunks. Used to isolate different algorithms for getting chunks from one another.
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.interfaces;
|
||||
package electrosphere.server.physics.terrain.generation.interfaces;
|
||||
|
||||
import org.graalvm.polyglot.HostAccess.Export;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.interfaces;
|
||||
package electrosphere.server.physics.terrain.generation.interfaces;
|
||||
|
||||
import electrosphere.game.server.world.ServerWorldData;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.interfaces;
|
||||
package electrosphere.server.physics.terrain.generation.interfaces;
|
||||
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.macro;
|
||||
package electrosphere.server.physics.terrain.generation.macro;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
@ -6,7 +6,7 @@ import java.util.Random;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeTypeMap;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* The default approach to generating macro data
|
||||
@ -1,9 +1,9 @@
|
||||
package electrosphere.server.terrain.generation.macro;
|
||||
package electrosphere.server.physics.terrain.generation.macro;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeTypeMap;
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* Generates a world that is a single biome
|
||||
@ -1,6 +1,6 @@
|
||||
package electrosphere.server.terrain.generation.macro;
|
||||
package electrosphere.server.physics.terrain.generation.macro;
|
||||
|
||||
import electrosphere.server.terrain.models.TerrainModel;
|
||||
import electrosphere.server.physics.terrain.models.TerrainModel;
|
||||
|
||||
/**
|
||||
* Populates a terrain model's macro data
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.noise;
|
||||
package electrosphere.server.physics.terrain.generation.noise;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.noise;
|
||||
package electrosphere.server.physics.terrain.generation.noise;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
@ -7,14 +7,14 @@ import com.google.gson.JsonDeserializer;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonParseException;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorAdd;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorClamp;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorConst;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorDomainWarp;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorMul;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorOpenSimplex;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorVoronoi;
|
||||
import electrosphere.server.terrain.generation.noise.operators.NoiseOperoatorInvoke;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorAdd;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorClamp;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorConst;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorDomainWarp;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorMul;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorOpenSimplex;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorVoronoi;
|
||||
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperoatorInvoke;
|
||||
|
||||
/**
|
||||
* Deserializes noise modules
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.noise;
|
||||
package electrosphere.server.physics.terrain.generation.noise;
|
||||
|
||||
/**
|
||||
* A noce function that can be sampled in octaves
|
||||
@ -1,4 +1,4 @@
|
||||
package electrosphere.server.terrain.generation.noise;
|
||||
package electrosphere.server.physics.terrain.generation.noise;
|
||||
|
||||
/**
|
||||
* A noise module that can sample values
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
public class NoiseOperatorAdd implements NoiseContainer {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
import io.github.studiorailgun.MathUtils;
|
||||
|
||||
/**
|
||||
@ -1,6 +1,6 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
/**
|
||||
* Gets a constant value
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
/**
|
||||
* The warp operator
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
/**
|
||||
* Multiplies one noise source by another
|
||||
@ -1,6 +1,6 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseOctaveSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseOctaveSampler;
|
||||
import electrosphere.util.noise.OpenSimplex2S;
|
||||
|
||||
/**
|
||||
@ -1,6 +1,6 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseOctaveSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseOctaveSampler;
|
||||
import io.github.studiorailgun.NoiseUtils;
|
||||
|
||||
/**
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.noise.operators;
|
||||
package electrosphere.server.physics.terrain.generation.noise.operators;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
import electrosphere.server.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.terrain.generation.noise.NoiseSampler;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
|
||||
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
|
||||
|
||||
/**
|
||||
* Invokes another sample definition file
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.voxelphase;
|
||||
package electrosphere.server.physics.terrain.generation.voxelphase;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
|
||||
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
|
||||
import io.github.studiorailgun.MathUtils;
|
||||
import io.github.studiorailgun.RandUtils;
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.voxelphase;
|
||||
package electrosphere.server.physics.terrain.generation.voxelphase;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
|
||||
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
|
||||
|
||||
/**
|
||||
* Generates voxels for a hill
|
||||
@ -1,10 +1,10 @@
|
||||
package electrosphere.server.terrain.generation.voxelphase;
|
||||
package electrosphere.server.physics.terrain.generation.voxelphase;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.game.data.biome.BiomeData;
|
||||
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
|
||||
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
|
||||
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
|
||||
|
||||
public class MountainVoxelGen implements VoxelGenerator {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user