Severe QOL improvement with enums
This commit is contained in:
parent
ec0efac73d
commit
b79f30f10d
309
minetest-api.d.ts
vendored
309
minetest-api.d.ts
vendored
@ -435,50 +435,6 @@ declare global {
|
||||
max_hear_distance: number
|
||||
}
|
||||
|
||||
export enum ParamType1 {
|
||||
"light",
|
||||
"none"
|
||||
}
|
||||
|
||||
export enum ParamType2 {
|
||||
"flowingliquid",
|
||||
"wallmounted",
|
||||
"facedir",
|
||||
"4dir",
|
||||
"leveled",
|
||||
"degrotate",
|
||||
"meshoptions",
|
||||
"color",
|
||||
"colorfacedir",
|
||||
"color4dir",
|
||||
"colorwallmounted",
|
||||
"glasslikeliquidlevel",
|
||||
"colordegrotate"
|
||||
}
|
||||
|
||||
export enum drawtype {
|
||||
"normal",
|
||||
"airlike",
|
||||
"liquid",
|
||||
"flowingliquid",
|
||||
"glasslike",
|
||||
"glasslike_framed",
|
||||
"glasslike_framed_optional",
|
||||
"allfaces",
|
||||
"allfaces_optional",
|
||||
"torchlike",
|
||||
"signlike",
|
||||
"plantlike",
|
||||
"firelike",
|
||||
"fencelike",
|
||||
"raillike",
|
||||
"nodebox",
|
||||
"mesh",
|
||||
"plantlike_rooted"
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface NodeBox {
|
||||
type: nodeboxtype
|
||||
fixed: boxTable
|
||||
@ -505,13 +461,6 @@ declare global {
|
||||
|
||||
export type boxTable = box[]
|
||||
|
||||
export enum nodeboxtype {
|
||||
"regular",
|
||||
"fixed",
|
||||
"wallmounted",
|
||||
"connected"
|
||||
}
|
||||
|
||||
export type itemstring = string
|
||||
|
||||
|
||||
@ -589,36 +538,6 @@ declare global {
|
||||
b: number
|
||||
}
|
||||
|
||||
export enum LogLevel {
|
||||
"none",
|
||||
"error",
|
||||
"warning",
|
||||
"action",
|
||||
"info",
|
||||
"verbose"
|
||||
}
|
||||
|
||||
export enum TextureAlpha {
|
||||
"opaque",
|
||||
"clip",
|
||||
"blend"
|
||||
}
|
||||
|
||||
export enum LiquidType {
|
||||
"none",
|
||||
"source",
|
||||
"flowing"
|
||||
}
|
||||
|
||||
export enum NodeBoxConnections {
|
||||
"top",
|
||||
"bottom",
|
||||
"front",
|
||||
"left",
|
||||
"back",
|
||||
"right"
|
||||
}
|
||||
|
||||
export interface NodeSoundSpec {
|
||||
footstep: SimpleSoundSpec
|
||||
dig: SimpleSoundSpec | string
|
||||
@ -676,15 +595,6 @@ declare global {
|
||||
punch_use_air: SimpleSoundSpec
|
||||
}
|
||||
|
||||
export enum EntityVisual {
|
||||
cube = "cube",
|
||||
sprite = "sprite",
|
||||
upright_sprite = "upright_sprite",
|
||||
mesh = "mesh",
|
||||
wielditem = "wielditem",
|
||||
item = "item"
|
||||
}
|
||||
|
||||
export interface Collision {
|
||||
type: string
|
||||
axis: string
|
||||
@ -849,37 +759,6 @@ declare global {
|
||||
action(pos: Vec3, node: NodeTable, delta: number): void
|
||||
}
|
||||
|
||||
|
||||
export enum SchematicRotation {
|
||||
zero = "0",
|
||||
ninety = "90",
|
||||
oneEighty = "180",
|
||||
twoSeventy = "270",
|
||||
random = "random"
|
||||
}
|
||||
|
||||
export enum SchematicPlacementFlag {
|
||||
"place_center_x",
|
||||
"place_center_y",
|
||||
"place_center_z"
|
||||
}
|
||||
|
||||
export enum SchematicFormat {
|
||||
"mts",
|
||||
"lua"
|
||||
}
|
||||
|
||||
export enum SchematicSerializationOption {
|
||||
"lua_use_comments",
|
||||
"lua_num_indent_spaces"
|
||||
}
|
||||
|
||||
export enum SchematicReadOptionYSliceOption {
|
||||
"none",
|
||||
"low",
|
||||
"all"
|
||||
}
|
||||
|
||||
export interface SchematicReadOptionYSlice {
|
||||
write_yslice_prob: SchematicReadOptionYSliceOption
|
||||
}
|
||||
@ -908,12 +787,7 @@ declare global {
|
||||
yslice_prob: number[][]
|
||||
}
|
||||
|
||||
export enum HTTPRequestMethod {
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"DELETE"
|
||||
}
|
||||
|
||||
|
||||
export interface HTTPrequestDefinition {
|
||||
url: string
|
||||
@ -940,26 +814,6 @@ declare global {
|
||||
fetch_async_get(handle: number): HTTPRequestResult
|
||||
}
|
||||
|
||||
export enum OreType {
|
||||
"scatter",
|
||||
"sheet",
|
||||
"puff",
|
||||
"blob",
|
||||
"vein",
|
||||
"stratum"
|
||||
}
|
||||
|
||||
export enum OreFlags {
|
||||
"puff_cliffs",
|
||||
"puff_additive_composition"
|
||||
}
|
||||
|
||||
export enum NoiseFlags {
|
||||
"defaults",
|
||||
"eased",
|
||||
"absvalue"
|
||||
}
|
||||
|
||||
export interface NoiseParams {
|
||||
offset: number
|
||||
scale: number
|
||||
@ -1022,22 +876,6 @@ declare global {
|
||||
humidity_point: number
|
||||
}
|
||||
|
||||
|
||||
export enum DecorationType {
|
||||
simple = "simple",
|
||||
schematic = "schematic"
|
||||
}
|
||||
|
||||
export enum DecorationFlags {
|
||||
"liquid_surface",
|
||||
"force_placement",
|
||||
"all_floors",
|
||||
"all_ceilings",
|
||||
"place_center_x",
|
||||
"place_center_y",
|
||||
"place_center_z"
|
||||
}
|
||||
|
||||
export interface DecorationDefinition {
|
||||
name: string
|
||||
deco_type: DecorationType
|
||||
@ -1063,13 +901,7 @@ declare global {
|
||||
rotation: string
|
||||
}
|
||||
|
||||
export enum CraftRecipeType {
|
||||
"shapless",
|
||||
"toolrepair",
|
||||
"cooking",
|
||||
"fuel"
|
||||
}
|
||||
|
||||
|
||||
export interface CraftRecipeDefinition {
|
||||
type: CraftRecipeType
|
||||
output: string
|
||||
@ -1106,16 +938,6 @@ declare global {
|
||||
iterate(): void
|
||||
}
|
||||
|
||||
|
||||
export enum HPChangeReasonType {
|
||||
"set_hp",
|
||||
"punch",
|
||||
"fall",
|
||||
"node_damage",
|
||||
"drown",
|
||||
"respawn"
|
||||
}
|
||||
|
||||
export interface HPChangeReasonDefinition {
|
||||
type: HPChangeReasonType
|
||||
node: string
|
||||
@ -1124,16 +946,6 @@ declare global {
|
||||
from: string
|
||||
}
|
||||
|
||||
export enum CheatType {
|
||||
"moved_too_fast",
|
||||
"interacted_too_far",
|
||||
"interacted_with_self",
|
||||
"interacted_while_dead",
|
||||
"finished_unknown_dig",
|
||||
"dug_unbreakable",
|
||||
"dug_too_fast"
|
||||
}
|
||||
|
||||
export interface ActionDefinition {
|
||||
from_list: string
|
||||
to_list: string
|
||||
@ -1150,24 +962,9 @@ declare global {
|
||||
type: CheatType
|
||||
}
|
||||
|
||||
export enum ClearObjectsOptions {
|
||||
"full",
|
||||
"quick"
|
||||
}
|
||||
|
||||
|
||||
export type EmergeAreaCallback = (blockPos: Vec3, action: any, callsRemaining: number, param: any) => void // ! FIXME: figure out what minetest.EMERGE_CANCELLED EVEN IS!
|
||||
|
||||
export enum GenNotifyFlags {
|
||||
"dungeon",
|
||||
"temple",
|
||||
"cave_begin",
|
||||
"cave_end",
|
||||
"large_cave_begin",
|
||||
"large_cave_end",
|
||||
"decoration"
|
||||
}
|
||||
|
||||
export interface BiomeDataDefinition {
|
||||
biome: number
|
||||
heat: number
|
||||
@ -1182,12 +979,7 @@ declare global {
|
||||
flags: string
|
||||
}
|
||||
|
||||
export enum SearchAlgorithm{
|
||||
"A*_noprefetch",
|
||||
"A*",
|
||||
"Dijkstra"
|
||||
}
|
||||
|
||||
|
||||
export interface MetaData {
|
||||
fields: {string : any}
|
||||
inventory: {string : {number : string}}
|
||||
@ -1503,17 +1295,6 @@ declare global {
|
||||
zoom: boolean
|
||||
}
|
||||
|
||||
export enum SkyParametersType {
|
||||
"regular",
|
||||
"skybox",
|
||||
"plain"
|
||||
}
|
||||
|
||||
export enum SkyParametersFogTintType {
|
||||
"custom",
|
||||
"default"
|
||||
}
|
||||
|
||||
export interface SkyParametersColor {
|
||||
day_sky: DynamicColorSpec
|
||||
day_horizon: DynamicColorSpec
|
||||
@ -1649,12 +1430,7 @@ declare global {
|
||||
get_staticdata?(): void
|
||||
}
|
||||
|
||||
export enum MinimapType {
|
||||
"off",
|
||||
"surface",
|
||||
"radar",
|
||||
"texture"
|
||||
}
|
||||
|
||||
|
||||
export interface MinimapModes {
|
||||
type: MinimapType
|
||||
@ -1675,17 +1451,6 @@ declare global {
|
||||
basic_debug: boolean
|
||||
}
|
||||
|
||||
export enum HudElementType {
|
||||
"image",
|
||||
"text",
|
||||
"statbar",
|
||||
"inventory",
|
||||
"waypoint",
|
||||
"image_waypoint",
|
||||
"compass",
|
||||
"minimap"
|
||||
}
|
||||
|
||||
export interface HudDefinition {
|
||||
hud_elem_type: HudElementType
|
||||
position: Vec2
|
||||
@ -1704,44 +1469,8 @@ declare global {
|
||||
style: number
|
||||
}
|
||||
|
||||
export enum HudReplaceBuiltinOption {
|
||||
"breath",
|
||||
"health"
|
||||
}
|
||||
|
||||
export type Formspec = string
|
||||
|
||||
export enum ParseRelativeNumberArgument {
|
||||
"<number>",
|
||||
"~<number>",
|
||||
"~"
|
||||
}
|
||||
|
||||
export enum CompressionMethod {
|
||||
"deflate",
|
||||
"zstd"
|
||||
}
|
||||
|
||||
export enum RotateAndPlaceOrientationFlag {
|
||||
"invert_wall",
|
||||
"force_wall",
|
||||
"force_ceiling",
|
||||
"force_floor",
|
||||
"force_facedir"
|
||||
}
|
||||
|
||||
export enum BlockStatusCondition {
|
||||
"unknown",
|
||||
"emerging",
|
||||
"loaded",
|
||||
"active"
|
||||
}
|
||||
|
||||
export enum TileAnimationType {
|
||||
"vertical_frames",
|
||||
"sheed_2d"
|
||||
}
|
||||
|
||||
export interface TileAnimationDefinition {
|
||||
type: TileAnimationType
|
||||
aspect_w: number
|
||||
@ -1796,13 +1525,6 @@ declare global {
|
||||
bounce: ParticleBounceDefinition
|
||||
}
|
||||
|
||||
export enum ParticleSpawnerTweenStyle {
|
||||
"fwd",
|
||||
"rev",
|
||||
"pulse",
|
||||
"flicker"
|
||||
}
|
||||
|
||||
export interface ParticleSpawnerTweenDefinition extends Array<number | ParticleSpawnerRangeDefinition> {
|
||||
// {number | ParticleSpawnerRangeDefinition}
|
||||
style: ParticleSpawnerTweenStyle
|
||||
@ -1820,13 +1542,6 @@ declare global {
|
||||
z: number
|
||||
}
|
||||
|
||||
export enum ParticleSpawnerTextureBlend {
|
||||
"alpha",
|
||||
"add",
|
||||
"screen",
|
||||
"sub"
|
||||
}
|
||||
|
||||
export type ParticleSpawnerTextureScaleTween = Array<Vec2>
|
||||
|
||||
export interface ParticleSpawnerTextureDefinition {
|
||||
@ -1844,11 +1559,6 @@ declare global {
|
||||
reps: number
|
||||
}
|
||||
|
||||
export enum TexturePoolComponentFade {
|
||||
"in",
|
||||
"out"
|
||||
}
|
||||
|
||||
export interface TexturePoolComponentDefinition {
|
||||
name: string
|
||||
fade: TexturePoolComponentFade
|
||||
@ -1860,13 +1570,6 @@ declare global {
|
||||
|
||||
export type ParticleSpawnerTexturePoolDefinition = Array<string | TexturePoolComponentDefinition>
|
||||
|
||||
export enum ParticleSpawnerAttractionType {
|
||||
"none",
|
||||
"point",
|
||||
"line",
|
||||
"plane"
|
||||
}
|
||||
|
||||
export interface ParticleSpawnerAttractionDefinition {
|
||||
kind: ParticleSpawnerAttractionType
|
||||
strength: Vec2
|
||||
@ -1894,10 +1597,6 @@ declare global {
|
||||
texpool: ParticleSpawnerTexturePoolDefinition
|
||||
}
|
||||
|
||||
export enum AreaStoreType{
|
||||
"LibSpatial"
|
||||
}
|
||||
|
||||
export interface AreaStoreArea {
|
||||
min: Vec3
|
||||
max: Vec3
|
||||
|
@ -5,3 +5,216 @@ EntityVisual.upright_sprite = "upright_sprite"
|
||||
EntityVisual.mesh = "mesh"
|
||||
EntityVisual.wielditem = "wielditem"
|
||||
EntityVisual.item = "item"
|
||||
SchematicRotation = SchematicRotation or ({})
|
||||
SchematicRotation.zero = "0"
|
||||
SchematicRotation.ninety = "90"
|
||||
SchematicRotation.oneEighty = "180"
|
||||
SchematicRotation.twoSeventy = "270"
|
||||
SchematicRotation.random = "random"
|
||||
SchematicPlacementFlag = SchematicPlacementFlag or ({})
|
||||
SchematicPlacementFlag.place_center_x = "place_center_x"
|
||||
SchematicPlacementFlag.place_center_y = "place_center_y"
|
||||
SchematicPlacementFlag.place_center_z = "place_center_z"
|
||||
SchematicFormat = SchematicFormat or ({})
|
||||
SchematicFormat.mts = "mts"
|
||||
SchematicFormat.lua = "lua"
|
||||
SchematicSerializationOption = SchematicSerializationOption or ({})
|
||||
SchematicSerializationOption.lua_use_comments = "lua_use_comments"
|
||||
SchematicSerializationOption.lua_num_indent_spaces = "lua_num_indent_spaces"
|
||||
SchematicReadOptionYSliceOption = SchematicReadOptionYSliceOption or ({})
|
||||
SchematicReadOptionYSliceOption.none = "none"
|
||||
SchematicReadOptionYSliceOption.low = "low"
|
||||
SchematicReadOptionYSliceOption.all = "all"
|
||||
HTTPRequestMethod = HTTPRequestMethod or ({})
|
||||
HTTPRequestMethod.GET = "GET"
|
||||
HTTPRequestMethod.POST = "POST"
|
||||
HTTPRequestMethod.PUT = "PUT"
|
||||
HTTPRequestMethod.DELETE = "DELETE"
|
||||
OreType = OreType or ({})
|
||||
OreType.scatter = "scatter"
|
||||
OreType.sheet = "sheet"
|
||||
OreType.puff = "puff"
|
||||
OreType.blob = "blob"
|
||||
OreType.vein = "vein"
|
||||
OreType.stratum = "stratum"
|
||||
OreFlags = OreFlags or ({})
|
||||
OreFlags.puff_cliffs = "puff_cliffs"
|
||||
OreFlags.puff_additive_composition = "puff_additive_composition"
|
||||
NoiseFlags = NoiseFlags or ({})
|
||||
NoiseFlags.defaults = "defaults"
|
||||
NoiseFlags.eased = "eased"
|
||||
NoiseFlags.absvalue = "absvalue"
|
||||
DecorationType = DecorationType or ({})
|
||||
DecorationType.simple = "simple"
|
||||
DecorationType.schematic = "schematic"
|
||||
DecorationFlags = DecorationFlags or ({})
|
||||
DecorationFlags.liquid_surface = "liquid_surface"
|
||||
DecorationFlags.force_placement = "force_placement"
|
||||
DecorationFlags.all_floors = "all_floors"
|
||||
DecorationFlags.all_ceilings = "all_ceilings"
|
||||
DecorationFlags.place_center_x = "place_center_x"
|
||||
DecorationFlags.place_center_y = "place_center_y"
|
||||
DecorationFlags.place_center_z = "place_center_z"
|
||||
ParamType1 = ParamType1 or ({})
|
||||
ParamType1.light = "light"
|
||||
ParamType1.none = "none"
|
||||
ParamType2 = ParamType2 or ({})
|
||||
ParamType2.flowingliquid = "flowingliquid"
|
||||
ParamType2.wallmounted = "wallmounted"
|
||||
ParamType2.facedir = "facedir"
|
||||
ParamType2.fourdir = "4dir"
|
||||
ParamType2.leveled = "leveled"
|
||||
ParamType2.degrotate = "degrotate"
|
||||
ParamType2.meshoptions = "meshoptions"
|
||||
ParamType2.color = "color"
|
||||
ParamType2.colorfacedir = "colorfacedir"
|
||||
ParamType2.color4dir = "color4dir"
|
||||
ParamType2.colorwallmounted = "colorwallmounted"
|
||||
ParamType2.glasslikeliquidlevel = "glasslikeliquidlevel"
|
||||
ParamType2.colordegrotate = "colordegrotate"
|
||||
drawtype = drawtype or ({})
|
||||
drawtype.normal = "normal"
|
||||
drawtype.airlike = "airlike"
|
||||
drawtype.liquid = "liquid"
|
||||
drawtype.flowingliquid = "flowingliquid"
|
||||
drawtype.glasslike = "glasslike"
|
||||
drawtype.glasslike_framed = "glasslike_framed"
|
||||
drawtype.glasslike_framed_optional = "glasslike_framed_optional"
|
||||
drawtype.allfaces = "allfaces"
|
||||
drawtype.allfaces_optional = "allfaces_optional"
|
||||
drawtype.torchlike = "torchlike"
|
||||
drawtype.signlike = "signlike"
|
||||
drawtype.plantlike = "plantlike"
|
||||
drawtype.firelike = "firelike"
|
||||
drawtype.fencelike = "fencelike"
|
||||
drawtype.raillike = "raillike"
|
||||
drawtype.nodebox = "nodebox"
|
||||
drawtype.mesh = "mesh"
|
||||
drawtype.plantlike_rooted = "plantlike_rooted"
|
||||
nodeboxtype = nodeboxtype or ({})
|
||||
nodeboxtype.regular = "regular"
|
||||
nodeboxtype.fixed = "fixed"
|
||||
nodeboxtype.wallmounted = "wallmounted"
|
||||
nodeboxtype.connected = "connected"
|
||||
LogLevel = LogLevel or ({})
|
||||
LogLevel.none = "none"
|
||||
LogLevel.error = "error"
|
||||
LogLevel.warning = "warning"
|
||||
LogLevel.action = "action"
|
||||
LogLevel.info = "info"
|
||||
LogLevel.verbose = "verbose"
|
||||
TextureAlpha = TextureAlpha or ({})
|
||||
TextureAlpha.opaque = "opaque"
|
||||
TextureAlpha.clip = "clip"
|
||||
TextureAlpha.blend = "blend"
|
||||
LiquidType = LiquidType or ({})
|
||||
LiquidType.none = "none"
|
||||
LiquidType.source = "source"
|
||||
LiquidType.flowing = "flowing"
|
||||
NodeBoxConnections = NodeBoxConnections or ({})
|
||||
NodeBoxConnections.top = "top"
|
||||
NodeBoxConnections.bottom = "bottom"
|
||||
NodeBoxConnections.front = "front"
|
||||
NodeBoxConnections.left = "left"
|
||||
NodeBoxConnections.back = "back"
|
||||
NodeBoxConnections.right = "right"
|
||||
CraftRecipeType = CraftRecipeType or ({})
|
||||
CraftRecipeType.shapeless = "shapeless"
|
||||
CraftRecipeType.toolrepair = "toolrepair"
|
||||
CraftRecipeType.cooking = "cooking"
|
||||
CraftRecipeType.fuel = "fuel"
|
||||
HPChangeReasonType = HPChangeReasonType or ({})
|
||||
HPChangeReasonType.set_hp = "set_hp"
|
||||
HPChangeReasonType.punch = "punch"
|
||||
HPChangeReasonType.fall = "fall"
|
||||
HPChangeReasonType.node_damage = "node_damage"
|
||||
HPChangeReasonType.drown = "drown"
|
||||
HPChangeReasonType.respawn = "respawn"
|
||||
CheatType = CheatType or ({})
|
||||
CheatType.moved_too_fast = "moved_too_fast"
|
||||
CheatType.interacted_too_far = "interacted_too_far"
|
||||
CheatType.interacted_with_self = "interacted_with_self"
|
||||
CheatType.interacted_while_dead = "interacted_while_dead"
|
||||
CheatType.finished_unknown_dig = "finished_unknown_dig"
|
||||
CheatType.dug_unbreakable = "dug_unbreakable"
|
||||
CheatType.dug_too_fast = "dug_too_fast"
|
||||
ClearObjectsOptions = ClearObjectsOptions or ({})
|
||||
ClearObjectsOptions.full = "full"
|
||||
ClearObjectsOptions.quick = "quick"
|
||||
GenNotifyFlags = GenNotifyFlags or ({})
|
||||
GenNotifyFlags.dungeon = "dungeon"
|
||||
GenNotifyFlags.temple = "temple"
|
||||
GenNotifyFlags.cave_begin = "cave_begin"
|
||||
GenNotifyFlags.cave_end = "cave_end"
|
||||
GenNotifyFlags.large_cave_begin = "large_cave_begin"
|
||||
GenNotifyFlags.large_cave_end = "large_cave_end"
|
||||
GenNotifyFlags.decoration = "decoration"
|
||||
SearchAlgorithm = SearchAlgorithm or ({})
|
||||
SearchAlgorithm.aStarNoprefetch = "A*_noprefetch"
|
||||
SearchAlgorithm.aStar = "A*"
|
||||
SearchAlgorithm.dijkstra = "Dijkstra"
|
||||
SkyParametersType = SkyParametersType or ({})
|
||||
SkyParametersType.regular = "regular"
|
||||
SkyParametersType.skybox = "skybox"
|
||||
SkyParametersType.plain = "plain"
|
||||
SkyParametersFogTintType = SkyParametersFogTintType or ({})
|
||||
SkyParametersFogTintType.custom = "custom"
|
||||
SkyParametersFogTintType.default = "default"
|
||||
MinimapType = MinimapType or ({})
|
||||
MinimapType.off = "off"
|
||||
MinimapType.surface = "surface"
|
||||
MinimapType.radar = "radar"
|
||||
MinimapType.texture = "texture"
|
||||
HudElementType = HudElementType or ({})
|
||||
HudElementType.image = "image"
|
||||
HudElementType.text = "text"
|
||||
HudElementType.statbar = "statbar"
|
||||
HudElementType.inventory = "inventory"
|
||||
HudElementType.waypoint = "waypoint"
|
||||
HudElementType.image_waypoint = "image_waypoint"
|
||||
HudElementType.compass = "compass"
|
||||
HudElementType.minimap = "minimap"
|
||||
HudReplaceBuiltinOption = HudReplaceBuiltinOption or ({})
|
||||
HudReplaceBuiltinOption.breath = "breath"
|
||||
HudReplaceBuiltinOption.health = "health"
|
||||
ParseRelativeNumberArgument = ParseRelativeNumberArgument or ({})
|
||||
ParseRelativeNumberArgument.number = "<number>"
|
||||
ParseRelativeNumberArgument.relativeToPlus = "~<number>"
|
||||
ParseRelativeNumberArgument.relativeTo = "~"
|
||||
CompressionMethod = CompressionMethod or ({})
|
||||
CompressionMethod.deflate = "deflate"
|
||||
CompressionMethod.zstd = "zstd"
|
||||
RotateAndPlaceOrientationFlag = RotateAndPlaceOrientationFlag or ({})
|
||||
RotateAndPlaceOrientationFlag.invert_wall = "invert_wall"
|
||||
RotateAndPlaceOrientationFlag.force_wall = "force_wall"
|
||||
RotateAndPlaceOrientationFlag.force_ceiling = "force_ceiling"
|
||||
RotateAndPlaceOrientationFlag.force_floor = "force_floor"
|
||||
RotateAndPlaceOrientationFlag.force_facedir = "force_facedir"
|
||||
BlockStatusCondition = BlockStatusCondition or ({})
|
||||
BlockStatusCondition.unknown = "unknown"
|
||||
BlockStatusCondition.emerging = "emerging"
|
||||
BlockStatusCondition.loaded = "loaded"
|
||||
BlockStatusCondition.active = "active"
|
||||
TileAnimationType = TileAnimationType or ({})
|
||||
TileAnimationType.vertical_frames = "vertical_frames"
|
||||
TileAnimationType.sheed_2d = "sheed_2d"
|
||||
ParticleSpawnerTweenStyle = ParticleSpawnerTweenStyle or ({})
|
||||
ParticleSpawnerTweenStyle.fwd = "fwd"
|
||||
ParticleSpawnerTweenStyle.rev = "rev"
|
||||
ParticleSpawnerTweenStyle.pulse = "pulse"
|
||||
ParticleSpawnerTweenStyle.flicker = "flicker"
|
||||
ParticleSpawnerTextureBlend = ParticleSpawnerTextureBlend or ({})
|
||||
ParticleSpawnerTextureBlend.alpha = "alpha"
|
||||
ParticleSpawnerTextureBlend.add = "add"
|
||||
ParticleSpawnerTextureBlend.screen = "screen"
|
||||
ParticleSpawnerTextureBlend.sub = "sub"
|
||||
ParticleSpawnerAttractionType = ParticleSpawnerAttractionType or ({})
|
||||
ParticleSpawnerAttractionType.none = "none"
|
||||
ParticleSpawnerAttractionType.point = "point"
|
||||
ParticleSpawnerAttractionType.line = "line"
|
||||
ParticleSpawnerAttractionType.plane = "plane"
|
||||
AreaStoreType = AreaStoreType or ({})
|
||||
AreaStoreType.libSpatial = "LibSpatial"
|
||||
TexturePoolComponentFade = TexturePoolComponentFade or ({})
|
||||
TexturePoolComponentFade["in"] = "in"
|
||||
TexturePoolComponentFade.out = "out"
|
||||
|
@ -0,0 +1,307 @@
|
||||
enum EntityVisual {
|
||||
cube = "cube",
|
||||
sprite = "sprite",
|
||||
upright_sprite = "upright_sprite",
|
||||
mesh = "mesh",
|
||||
wielditem = "wielditem",
|
||||
item = "item"
|
||||
}
|
||||
|
||||
enum SchematicRotation {
|
||||
zero = "0",
|
||||
ninety = "90",
|
||||
oneEighty = "180",
|
||||
twoSeventy = "270",
|
||||
random = "random"
|
||||
}
|
||||
|
||||
enum SchematicPlacementFlag {
|
||||
place_center_x = "place_center_x",
|
||||
place_center_y = "place_center_y",
|
||||
place_center_z = "place_center_z"
|
||||
}
|
||||
|
||||
enum SchematicFormat {
|
||||
mts = "mts",
|
||||
lua = "lua"
|
||||
}
|
||||
|
||||
enum SchematicSerializationOption {
|
||||
lua_use_comments = "lua_use_comments",
|
||||
lua_num_indent_spaces = "lua_num_indent_spaces"
|
||||
}
|
||||
|
||||
enum SchematicReadOptionYSliceOption {
|
||||
none = "none",
|
||||
low = "low",
|
||||
all = "all"
|
||||
}
|
||||
|
||||
enum HTTPRequestMethod {
|
||||
GET = "GET",
|
||||
POST = "POST",
|
||||
PUT = "PUT",
|
||||
DELETE = "DELETE"
|
||||
}
|
||||
|
||||
|
||||
enum OreType {
|
||||
scatter = "scatter",
|
||||
sheet = "sheet",
|
||||
puff = "puff",
|
||||
blob = "blob",
|
||||
vein = "vein",
|
||||
stratum = "stratum"
|
||||
}
|
||||
|
||||
enum OreFlags {
|
||||
puff_cliffs = "puff_cliffs",
|
||||
puff_additive_composition = "puff_additive_composition"
|
||||
}
|
||||
|
||||
enum NoiseFlags {
|
||||
defaults = "defaults",
|
||||
eased = "eased",
|
||||
absvalue = "absvalue"
|
||||
}
|
||||
|
||||
enum DecorationType {
|
||||
simple = "simple",
|
||||
schematic = "schematic"
|
||||
}
|
||||
|
||||
enum DecorationFlags {
|
||||
liquid_surface = "liquid_surface",
|
||||
force_placement = "force_placement",
|
||||
all_floors = "all_floors",
|
||||
all_ceilings = "all_ceilings",
|
||||
place_center_x = "place_center_x",
|
||||
place_center_y = "place_center_y",
|
||||
place_center_z = "place_center_z"
|
||||
}
|
||||
|
||||
|
||||
enum ParamType1 {
|
||||
light = "light",
|
||||
none = "none"
|
||||
}
|
||||
|
||||
enum ParamType2 {
|
||||
flowingliquid = "flowingliquid",
|
||||
wallmounted = "wallmounted",
|
||||
facedir = "facedir",
|
||||
fourdir = "4dir",
|
||||
leveled = "leveled",
|
||||
degrotate = "degrotate",
|
||||
meshoptions = "meshoptions",
|
||||
color = "color",
|
||||
colorfacedir = "colorfacedir",
|
||||
color4dir = "color4dir",
|
||||
colorwallmounted = "colorwallmounted",
|
||||
glasslikeliquidlevel = "glasslikeliquidlevel",
|
||||
colordegrotate = "colordegrotate"
|
||||
}
|
||||
|
||||
enum drawtype {
|
||||
normal = "normal",
|
||||
airlike = "airlike",
|
||||
liquid = "liquid",
|
||||
flowingliquid = "flowingliquid",
|
||||
glasslike = "glasslike",
|
||||
glasslike_framed = "glasslike_framed",
|
||||
glasslike_framed_optional = "glasslike_framed_optional",
|
||||
allfaces = "allfaces",
|
||||
allfaces_optional = "allfaces_optional",
|
||||
torchlike = "torchlike",
|
||||
signlike = "signlike",
|
||||
plantlike = "plantlike",
|
||||
firelike = "firelike",
|
||||
fencelike = "fencelike",
|
||||
raillike = "raillike",
|
||||
nodebox = "nodebox",
|
||||
mesh = "mesh",
|
||||
plantlike_rooted = "plantlike_rooted"
|
||||
}
|
||||
|
||||
|
||||
enum nodeboxtype {
|
||||
regular = "regular",
|
||||
fixed = "fixed",
|
||||
wallmounted = "wallmounted",
|
||||
connected = "connected"
|
||||
}
|
||||
|
||||
|
||||
enum LogLevel {
|
||||
none = "none",
|
||||
error = "error",
|
||||
warning = "warning",
|
||||
action = "action",
|
||||
info = "info",
|
||||
verbose = "verbose"
|
||||
}
|
||||
|
||||
enum TextureAlpha {
|
||||
opaque = "opaque",
|
||||
clip = "clip",
|
||||
blend = "blend"
|
||||
}
|
||||
|
||||
enum LiquidType {
|
||||
none = "none",
|
||||
source = "source",
|
||||
flowing = "flowing"
|
||||
}
|
||||
|
||||
enum NodeBoxConnections {
|
||||
top = "top",
|
||||
bottom = "bottom",
|
||||
front = "front",
|
||||
left = "left",
|
||||
back = "back",
|
||||
right = "right"
|
||||
}
|
||||
|
||||
enum CraftRecipeType {
|
||||
shapeless = "shapeless",
|
||||
toolrepair = "toolrepair",
|
||||
cooking = "cooking",
|
||||
fuel = "fuel"
|
||||
}
|
||||
|
||||
enum HPChangeReasonType {
|
||||
set_hp = "set_hp",
|
||||
punch = "punch",
|
||||
fall = "fall",
|
||||
node_damage = "node_damage",
|
||||
drown = "drown",
|
||||
respawn = "respawn"
|
||||
}
|
||||
|
||||
enum CheatType {
|
||||
moved_too_fast = "moved_too_fast",
|
||||
interacted_too_far = "interacted_too_far",
|
||||
interacted_with_self = "interacted_with_self",
|
||||
interacted_while_dead = "interacted_while_dead",
|
||||
finished_unknown_dig = "finished_unknown_dig",
|
||||
dug_unbreakable = "dug_unbreakable",
|
||||
dug_too_fast = "dug_too_fast"
|
||||
}
|
||||
|
||||
enum ClearObjectsOptions {
|
||||
full = "full",
|
||||
quick = "quick"
|
||||
}
|
||||
|
||||
enum GenNotifyFlags {
|
||||
dungeon = "dungeon",
|
||||
temple = "temple",
|
||||
cave_begin = "cave_begin",
|
||||
cave_end = "cave_end",
|
||||
large_cave_begin = "large_cave_begin",
|
||||
large_cave_end = "large_cave_end",
|
||||
decoration = "decoration"
|
||||
}
|
||||
|
||||
enum SearchAlgorithm{
|
||||
aStarNoprefetch = "A*_noprefetch",
|
||||
aStar = "A*",
|
||||
dijkstra = "Dijkstra"
|
||||
}
|
||||
|
||||
|
||||
enum SkyParametersType {
|
||||
regular = "regular",
|
||||
skybox = "skybox",
|
||||
plain = "plain"
|
||||
}
|
||||
|
||||
enum SkyParametersFogTintType {
|
||||
custom = "custom",
|
||||
default = "default"
|
||||
}
|
||||
|
||||
enum MinimapType {
|
||||
off = "off",
|
||||
surface = "surface",
|
||||
radar = "radar",
|
||||
texture = "texture"
|
||||
}
|
||||
|
||||
enum HudElementType {
|
||||
image = "image",
|
||||
text = "text",
|
||||
statbar = "statbar",
|
||||
inventory = "inventory",
|
||||
waypoint= "waypoint",
|
||||
image_waypoint = "image_waypoint",
|
||||
compass = "compass",
|
||||
minimap = "minimap"
|
||||
}
|
||||
|
||||
enum HudReplaceBuiltinOption {
|
||||
breath = "breath",
|
||||
health = "health"
|
||||
}
|
||||
|
||||
|
||||
enum ParseRelativeNumberArgument {
|
||||
number = "<number>",
|
||||
relativeToPlus = "~<number>",
|
||||
relativeTo = "~"
|
||||
}
|
||||
|
||||
enum CompressionMethod {
|
||||
deflate = "deflate",
|
||||
zstd = "zstd"
|
||||
}
|
||||
|
||||
enum RotateAndPlaceOrientationFlag {
|
||||
invert_wall = "invert_wall",
|
||||
force_wall = "force_wall",
|
||||
force_ceiling = "force_ceiling",
|
||||
force_floor = "force_floor",
|
||||
force_facedir = "force_facedir"
|
||||
}
|
||||
|
||||
enum BlockStatusCondition {
|
||||
unknown = "unknown",
|
||||
emerging = "emerging",
|
||||
loaded = "loaded",
|
||||
active = "active"
|
||||
}
|
||||
|
||||
enum TileAnimationType {
|
||||
vertical_frames = "vertical_frames",
|
||||
sheed_2d = "sheed_2d"
|
||||
}
|
||||
|
||||
enum ParticleSpawnerTweenStyle {
|
||||
fwd = "fwd",
|
||||
rev = "rev",
|
||||
pulse = "pulse",
|
||||
flicker = "flicker"
|
||||
}
|
||||
|
||||
enum ParticleSpawnerTextureBlend {
|
||||
alpha = "alpha",
|
||||
add = "add",
|
||||
screen = "screen",
|
||||
sub = "sub"
|
||||
}
|
||||
|
||||
enum ParticleSpawnerAttractionType {
|
||||
none = "none",
|
||||
point = "point",
|
||||
line = "line",
|
||||
plane = "plane"
|
||||
}
|
||||
|
||||
enum AreaStoreType{
|
||||
libSpatial = "LibSpatial"
|
||||
}
|
||||
|
||||
enum TexturePoolComponentFade {
|
||||
in = "in",
|
||||
out = "out"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user