Add initial version

This commit is contained in:
Andrew Miner
2026-10-18 19:13:29 -06:00
parent 7fee583710
commit bfd2217cd5
29 changed files with 550 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
-- Constants ---------------------------------------------------------------------------------------
tmg_constants = { -- luacheck: globals tmg_constants
ALTITUDE = {
SKY = 256,
MOUNTAIN = 128,
MOOR = 64,
HILL = 32,
PLAIN = 16,
SURFACE = 0,
SHALLOW = -16,
DEEP = -32,
ABYSS = -64,
BEDROCK = -128,
},
ANIMATION_TYPE = {
VERTICAL_FRAMES = "vertical_frames",
SHEET_2D = "sheet_2d",
},
DRAW_TYPE = {
ALL_FACES_OPTIONAL = "allfaces_optional",
FLOWING_LIQUID = "flowingliquid",
LIQUID = "liquid",
MESH = "mesh",
NODE_BOX = "nodebox",
NORMAL = "normal",
PLANT_LIKE = "plantlike",
},
LIQUID_TYPE = {
NONE = "none",
SOURCE = "source",
FLOWING = "flowing",
},
TEXTURE_ALPHA = {
OPAQUE = "opaque",
CLIP = "clip",
BLEND = "blend",
},
VISCOSITY = {
XXX_FAST = 0,
XX_FAST = 1,
X_FAST = 2,
FAST = 3,
SLOW = 4,
X_SLOW = 5,
XX_SLOW = 6,
XXX_SLOW = 7,
},
WAVING = {
NO = 0,
PLANT_LIKE = 1,
LEAF_LIKE = 2,
LIQUID_LIKE = 3,
},
}
+6
View File
@@ -0,0 +1,6 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local path = core.get_modpath("tmg_constants")
dofile(path.."/constants.lua")
+4
View File
@@ -0,0 +1,4 @@
name = tmg_constants
title = Tungston's Game / Constants
description = defined shared values across mods
author = tungstonminer