sm64-roblox-liberty-prime/client/Enums/TerrainType.lua
Max ba0e5364bb Major restructuring and bug fixes.
Moved a lot of things around, fixed a lot of bugs, made the animations and sounds public. Special thanks to CuckyDev for helping me track down all the small problems that were lingering, and for fixing a major issue with the simulation rate. There's still some stuff to fix and improve, but now this should be more portable and useable by the wider community! 🎉

Co-Authored-By: Regan Green <cuckydev@gmail.com>
2023-07-07 22:01:02 -05:00

50 lines
1.4 KiB
Lua

--!strict
local TerrainType = {
DEFAULT = 0,
GRASS = 1,
WATER = 2,
STONE = 3,
SPOOKY = 4,
SNOW = 5,
ICE = 6,
SAND = 7,
METAL = 8,
}
TerrainType.FROM_MATERIAL = {
[Enum.Material.Mud] = TerrainType.GRASS,
[Enum.Material.Grass] = TerrainType.GRASS,
[Enum.Material.Ground] = TerrainType.GRASS,
[Enum.Material.LeafyGrass] = TerrainType.GRASS,
[Enum.Material.Ice] = TerrainType.ICE,
[Enum.Material.Marble] = TerrainType.ICE,
[Enum.Material.Glacier] = TerrainType.ICE,
[Enum.Material.Wood] = TerrainType.SPOOKY,
[Enum.Material.WoodPlanks] = TerrainType.SPOOKY,
[Enum.Material.Foil] = TerrainType.METAL,
[Enum.Material.Metal] = TerrainType.METAL,
[Enum.Material.DiamondPlate] = TerrainType.METAL,
[Enum.Material.CorrodedMetal] = TerrainType.METAL,
[Enum.Material.Rock] = TerrainType.STONE,
[Enum.Material.Salt] = TerrainType.STONE,
[Enum.Material.Brick] = TerrainType.STONE,
[Enum.Material.Slate] = TerrainType.STONE,
[Enum.Material.Basalt] = TerrainType.STONE,
[Enum.Material.Pebble] = TerrainType.STONE,
[Enum.Material.Granite] = TerrainType.STONE,
[Enum.Material.Sandstone] = TerrainType.STONE,
[Enum.Material.Cobblestone] = TerrainType.STONE,
[Enum.Material.CrackedLava] = TerrainType.STONE,
[Enum.Material.Snow] = TerrainType.SNOW,
[Enum.Material.Sand] = TerrainType.SAND,
[Enum.Material.Water] = TerrainType.WATER,
[Enum.Material.Fabric] = TerrainType.SNOW,
}
return TerrainType