Added flatbuffers dependency

Added flatbuffers dependency
Created test connection.fbs
This commit is contained in:
Collin Smith
2019-04-10 05:08:54 -07:00
parent ab9d9fd481
commit f361d48777
3 changed files with 30 additions and 0 deletions

View File

@ -1,4 +1,8 @@
import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
apply plugin: "java"
apply plugin: "idea"
apply plugin: "io.netifi.flatbuffers"
sourceCompatibility = 1.7
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
@ -6,7 +10,19 @@ sourceCompatibility = 1.7
sourceSets.main.java.srcDirs = [ "src/" ]
sourceSets.test.java.srcDirs = [ "test/" ]
sourceSets.main.java.srcDir file('gen/')
idea {
module {
generatedSourceDirs += file('gen/')
}
}
eclipse.project {
name = appName + "-core"
}
task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/packet")
outputDir = file("gen/")
language = 'java'
}

View 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;
}