Rewrote engine and replaced Ashley with Artemis

Rewrote engine and replaced Ashley with Artemis
Added basic networking support for D2GS (handshake and sending initial player state to clients)
This commit is contained in:
Collin Smith
2019-12-11 02:07:55 -08:00
parent d6c76d2add
commit e4df005987
213 changed files with 6329 additions and 5032 deletions

View File

@ -11,6 +11,14 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "gradle.plugin.io.netifi:gradle-flatbuffers-plugin:1.0.5"
}
dependencies {
// lib for artemis-odb weaving.
// see https://github.com/junkdog/artemis-odb/wiki/Bytecode-weaving
classpath "net.onedaybeard.artemis:artemis-odb-gradle-plugin:2.2.0"
// lib for artemis-odb fluid.
classpath "net.onedaybeard.artemis:artemis-fluid-gradle-plugin:2.2.0"
}
}
allprojects {
@ -22,8 +30,9 @@ allprojects {
gdxVersion = '1.9.11-SNAPSHOT'
roboVMVersion = '2.3.3'
box2DLightsVersion = '1.4'
ashleyVersion = '1.7.4-SNAPSHOT'
aiVersion = '1.8.0'
artemisVersion = '2.3.0'
artemisContribVersion = '2.4.0'
}
ext {
@ -184,11 +193,11 @@ project(":android") {
project(":core") {
apply plugin: "java"
apply plugin: "artemis"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.ashley:ashley:$ashleyVersion"
compile "com.badlogicgames.gdx:gdx-ai:1.8.+"
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
}
@ -209,6 +218,25 @@ project(":core") {
compile "com.badlogicgames.box2dlights:box2dlights:1.4"
}
dependencies {
// components to expose
compile "net.onedaybeard.artemis:artemis-odb:$artemisVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
//compile "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion"
// Artemis-odb
compile "net.onedaybeard.artemis:artemis-odb:$artemisVersion"
compile "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:$artemisVersion"
// Artemis-odb bonus functionality (systems, events, components).
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
//compile "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:$artemisContribVersion"
//compile "net.mostlyoriginal.artemis-odb:contrib-plugin-operations:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-profiler:$artemisContribVersion"
// compile "net.mostlyoriginal.artemis-odb:contrib-plugin-singleton:$artemisContribVersion" // TODO: when added
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"