mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
make quickslots work with dynamic items
This commit is contained in:
@@ -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>) {
|
||||
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
27
src/net/torvald/terrarum/modulebasegame/icongen/SwordGen.kt
Normal file
27
src/net/torvald/terrarum/modulebasegame/icongen/SwordGen.kt
Normal 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 {}
|
||||
Reference in New Issue
Block a user