Hi
I have two models, say character1
and character2
i generated jar file for each one which contains .j3o file of model. I created them by making two subproject in my main gradle project.
...
dependencies {
...
runtime project(':character1')
runtime project(':character2')
}
project(":character1") {
apply plugin: "java"
buildDir = rootProject.file("build/character1")
// SourceSet's Configuration
sourceSets {
main{
resources {
srcDir '.'
}
}
}
}
project(":character2") {
apply plugin: "java"
buildDir = rootProject.file("build/character2")
// SourceSet's Configuration
sourceSets {
main{
resources {
srcDir '.'
}
}
}
}
Now suppose these are two new models i released them as an update to clients. So these models are not exist in my clients version yet.
I want clients be able to use these new models in their game by just downloading them from server and adding them inside lib
folder of their game dynamically without needing to rebuild client code.
How can i achieve this ? Can we register them dynamically using assetManager.registerLocator
?