Checkpoint initial implementation

This commit is contained in:
Andrew Miner
2025-10-06 17:41:18 -06:00
parent 773e0a3d85
commit a8b6e6b15e
106 changed files with 3012 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from tungston.core.ecology.biometrait import BiomeTrait
import tungston.core.ecology.biometrait as biomeTrait
# Class ############################################################################################
class Humidity(BiomeTrait):
"""
The general level of humidity present in the air.
"""
pass
# Constants ########################################################################################
WET = Humidity("wet")
DAMP = Humidity("damp")
DRY = Humidity("dry")
ALL = [WET, DAMP, DRY]
# Helpers ##########################################################################################
def within(start:Humidity, end:Humidity) -> list[Humidity]:
return biomeTrait.within(ALL, start, end)