the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 59 lines 2.3 kB view raw
1#pragma once 2 3// 4J-PB added to avoid string compares on adding particles 4enum ePARTICLE_TYPE 5{ 6 eParticleType_bubble, 7 eParticleType_smoke, 8 eParticleType_note, 9 eParticleType_netherportal, // 4J - This particle should only be used by the Nether portal. Everything else should use eParticleType_end 10 eParticleType_endportal, // 4J - Seperated this from torches and fires 11 eParticleType_explode, 12 eParticleType_flame, 13 eParticleType_lava, 14 eParticleType_footstep, 15 eParticleType_splash, 16 eParticleType_largesmoke, 17 eParticleType_reddust, 18 eParticleType_snowballpoof, 19 eParticleType_snowshovel, 20 eParticleType_slime, 21 eParticleType_heart, 22 eParticleType_suspended, 23 eParticleType_depthsuspend, 24 eParticleType_crit, 25 eParticleType_hugeexplosion, 26 eParticleType_largeexplode, 27 eParticleType_townaura, 28 eParticleType_spell, 29 eParticleType_witchMagic, 30 eParticleType_mobSpell, 31 eParticleType_mobSpellAmbient, 32 eParticleType_instantSpell, 33 eParticleType_magicCrit, 34 eParticleType_dripWater, 35 eParticleType_dripLava, 36 eParticleType_enchantmenttable, 37 eParticleType_dragonbreath, 38 eParticleType_ender, // 4J Added - These are things that used the "portal" particle but are actually end related entities 39 eParticleType_angryVillager, 40 eParticleType_happyVillager, 41 eParticleType_fireworksspark, 42 43 // 4J-JEV: In the java, the particle name was used to sneak parameters in for the Terrain and IconCrack particle constructors. 44 45 eParticleType_iconcrack_base = 0x100000, // There's range of iconcrack particle types based on item id and data. 46 eParticleType_iconcrack_last = 0x1FFFFF, 47 eParticleType_tilecrack_base = 0x200000, // There's a range of tilecrack particle types based on tile id and data. 48 eParticleType_tilecrack_last = 0x2FFFFF, 49 // 0x0000FF, <- these bits are for storing the data value. 50 // 0x0FFF00, <- these bits are for encoding tile/item id. 51 // 0x300000, <- these bits show if its an icon/tile or not. 52 53}; 54 55#define PARTICLE_TILECRACK(id,data) ( (ePARTICLE_TYPE) ( ((int) eParticleType_tilecrack_base) | ((0x0FFF & id) << 8) | (0x0FF & data)) ) 56#define PARTICLE_ICONCRACK(id,data) ( (ePARTICLE_TYPE) ( ((int) eParticleType_iconcrack_base) | ((0x0FFF & id) << 8) | (0x0FF & data)) ) 57 58#define PARTICLE_CRACK_ID(ePType) ((0x0FFF00 & (int)ePType) >> 8) 59#define PARTICLE_CRACK_DATA(ePType) (0x0FF & (int)ePType)