make quickslots work with dynamic items

This commit is contained in:
minjaesong
2020-02-13 15:08:59 +09:00
parent d29fed8da3
commit 9d51f419f5
10 changed files with 200 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
package net.torvald.terrarum.modulebasegame.icongen
import net.torvald.terrarum.Point2d
/**
*
* . _ end point
* / \ _ control point 1 LR
* | | _ control point 2 LR
* | | _ ...
* | | _ control point 8 LR
* ===== _ accessory (hilt)
* | _ accessory (grip)
* O _ accessory (pommel)
*
* Created by minjaesong on 2020-02-11.
*/
inline class IconGenMesh(val datapoints: Array<Point2d>) {
operator fun times(other: PerturbMesh) {
}
}
inline class PerturbMesh(val datapoints: Array<Point2d>) {
}

View File

@@ -0,0 +1,36 @@
package net.torvald.terrarum.modulebasegame.icongen
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.Texture
/**
* Created by minjaesong on 2020-02-11.
*/
object Rasteriser {
operator fun invoke(size: Int, accessories: IcongenOverlays, colour: Color,
mesh: IconGenMesh): Texture {
val retPixmap = Pixmap(size, size, Pixmap.Format.RGBA8888)
val ret = Texture(retPixmap)
retPixmap.dispose()
return ret
}
}
// dummy class plz del
class IcongenOverlays {
}

View File

@@ -0,0 +1,27 @@
package net.torvald.terrarum.modulebasegame.icongen
import com.badlogic.gdx.graphics.Color
/**
* Created by minjaesong on 2020-02-11.
*/
object SwordGen {
operator fun invoke(
size: Int, accessories: IconGenOverlays, colour: Color, type: SwordGenType,
straightness: Double, roughness: Double) {
}
//private fun getBaseArmingSwordMesh
}
enum class SwordGenType {
ArmingSword, TwoHanded, Mace
}
// dummy class plz del
class IconGenOverlays {}