mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-13 19:39:14 +07:00
Added flatbuffers dependency
Added flatbuffers dependency Created test connection.fbs
This commit is contained in:
parent
ab9d9fd481
commit
f361d48777
@ -3,11 +3,13 @@ buildscript {
|
|||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||||
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
jcenter()
|
jcenter()
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||||
|
classpath "gradle.plugin.io.netifi:gradle-flatbuffers-plugin:1.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,6 +182,7 @@ project(":core") {
|
|||||||
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
|
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
|
||||||
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
|
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
|
||||||
compile group: 'com.jcraft', name: 'jzlib', version: '1.1.3'
|
compile group: 'com.jcraft', name: 'jzlib', version: '1.1.3'
|
||||||
|
compile group: 'com.google.flatbuffers', name: 'flatbuffers-java', version: '1.10.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
|
||||||
|
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
apply plugin: "idea"
|
||||||
|
apply plugin: "io.netifi.flatbuffers"
|
||||||
|
|
||||||
sourceCompatibility = 1.7
|
sourceCompatibility = 1.7
|
||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
@ -6,7 +10,19 @@ sourceCompatibility = 1.7
|
|||||||
sourceSets.main.java.srcDirs = [ "src/" ]
|
sourceSets.main.java.srcDirs = [ "src/" ]
|
||||||
sourceSets.test.java.srcDirs = [ "test/" ]
|
sourceSets.test.java.srcDirs = [ "test/" ]
|
||||||
|
|
||||||
|
sourceSets.main.java.srcDir file('gen/')
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
generatedSourceDirs += file('gen/')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eclipse.project {
|
eclipse.project {
|
||||||
name = appName + "-core"
|
name = appName + "-core"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task createFlatBuffers(type: FlatBuffers) {
|
||||||
|
inputDir = file("src/com/riiablo/net/packet")
|
||||||
|
outputDir = file("gen/")
|
||||||
|
language = 'java'
|
||||||
|
}
|
||||||
|
11
core/src/com/riiablo/net/packet/connect.fbs
Normal file
11
core/src/com/riiablo/net/packet/connect.fbs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace com.riiablo.net.packet;
|
||||||
|
|
||||||
|
table Connection {
|
||||||
|
MCPCookie:uint32;
|
||||||
|
gameId:uint16;
|
||||||
|
charClass:uint8;
|
||||||
|
gameVersion:uint32;
|
||||||
|
gameConst:uint64;
|
||||||
|
locale:uint8;
|
||||||
|
charName:string;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user