mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
fluid viscosity on phys sim
This commit is contained in:
@@ -805,7 +805,7 @@ open class GameWorld(
|
||||
data class FluidInfo(val type: ItemID = Fluid.NULL, val amount: Float = 0f) {
|
||||
/** test if this fluid should be considered as one */
|
||||
fun isFluid() = type != Fluid.NULL && amount >= WorldSimulator.FLUID_MIN_MASS
|
||||
fun getProp(): Nothing = TODO()
|
||||
fun getProp() = FluidCodex[type]
|
||||
override fun toString() = "Fluid type: ${type}, amount: $amount"
|
||||
}
|
||||
|
||||
|
||||
@@ -49,9 +49,7 @@ import kotlin.math.cos
|
||||
* internal functions `getFormattedTime()`, `getShortTime()`, and `getFilenameTime()`
|
||||
* - Preferred computerised date format is YearMonthDate. E.g. 01250407
|
||||
* - Rest of the format (e.g. time intervals) follows ISO 8601 standard.
|
||||
*
|
||||
* (Check please:)
|
||||
* - Equinox/Solstice always occur on 21st day of the month
|
||||
* - Equinox/Solstice always occur on 15th day of the month
|
||||
*
|
||||
*
|
||||
* Created by minjaesong on 2016-01-24.
|
||||
|
||||
Reference in New Issue
Block a user