mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-06 08:18:41 +07:00
Added flatbuffers dependency
Added flatbuffers dependency Created test connection.fbs
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
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;
|
||||
}
|
Reference in New Issue
Block a user