Open1kJ/AssetLoaders/Enums.gd

70 lines
1.6 KiB
GDScript3
Raw Normal View History

2024-02-24 22:25:07 -06:00
class_name Enums
enum TileID {
TileVoid = 0,
TileBlank = 1,
TileHome = 2,
TileBattle = 3,
TileDraw = 4,
TileBonus = 5,
TileDrop = 6,
TileWarp = 7,
TileDrawx2 = 8,
TileBonusx2 = 9,
TileDropx2 = 10,
TileFlatWall = 11,
TileVoid2 = 12, # i'm not sure why there's 8 voids, or if they're even used
TileVoid3 = 13,
TileVoid4 = 14,
TileVoid5 = 15,
TileVoid6 = 16,
TileVoid7 = 17,
TileDeck = 18,
TileVoid8 = 19,
TileBattlex2 = 20,
TileMove = 21,
TileMovex2 = 22,
TileWarpMove = 23,
TileWarpMovex2 = 24,
TileIce = 25,
TileSnow = 26,
TileHeal = 27,
TileHealx2 = 28,
TileEvent = 29, # OJEdit says "Event (Blank Tile)"
TileUnknown = 30,
TileCoopBoss = 31,
TileDamage = 32,
TileDamagex2 = 33
}
static func get_tile_texture(id: int):
match id:
0: return ""
1: return "mass_common0.dat"
2: return "mass_check0.dat"
3: return "mass_encount0.dat"
4: return "mass_draw0.dat"
5: return "mass_bonus0.dat"
6: return "mass_drop0.dat"
7: return "mass_warp0.dat"
8: return "mass_drawL2.dat"
9: return "mass_bonusL2.dat"
10: return "mass_dropL2.dat"
11: return "mass_common0.dat"
12, 13, 14, 15, 16, 17: return ""
18: return "mass_editordeck.dat"
19: return ""
20: return "mass_encountL2.dat"
21: return "mass_move0.dat"
22: return "mass_moveL2.dat"
23: return "mass_warpmove0.dat"
24: return "mass_warpmoveL2.dat"
25: return "mass_snow0.dat"
26: return "mass_snow0.dat"
27: return "mass_heal0.dat"
28: return "mass_healL2.dat"
29: return "mass_common0.dat"
30: return "mass_common0.dat"
31: return "mass_boss.dat"
32: return "mass_damage.dat"
33: return "mass_damageL2.dat"