Commit Graph
57 Commits
Author SHA1 Message Date
Flowaria 104ced20da Added GeneralDrawLayerSystem 2025-12-16 17:48:41 -05:00
Flowaria d8bd7656c6 Mark ReflectionHelper as Obsolete 2025-12-06 11:38:12 +09:00
Flowaria f79725305f Revert Particle ModType conversion 2025-12-06 11:08:37 +09:00
Flowaria f4e75425ab Particle as ILoadable 2025-12-06 09:10:52 +09:00
Flowaria 7c77642ee4 GeneralParticleHandler now do AsyncLoad 2025-12-02 15:54:51 +09:00
fryzahh 36b00a1c77 Particles with shaders now account for different BlendStates
* particlesToDraw_CustomShader now separates particle collections based on their chosen BlendState
2025-11-16 08:06:17 -04:00
fryzahh 9c11d520d6 General cleanup and fixes
* Fixed an out of bounds error caused by TempParticleManager's update loop iterating through the maximum amount of particles that can exist at once rather than the maximum amount of particles that are currently active.
* Removed particleTypesByNames from GeneralParticleHandler.
* Renamed "Depth" to "ParallaxStrength" in TempParticle and other associated areas.
* Added Main.dedServ checks where necessary in TempParticleManager. Other general cleanup besides that.
* Added the "ReturnAll" method to TempParticleManager to allow users to forcibly return all active particles in the manager to the particle pool.
2025-11-15 21:30:02 -04:00
fryzahh b33a70fd08 GeneralDrawLayer generalization + TempParticle start
* Split up GeneralDrawLayer.BeforeTiles into BeforeAllTiles and BeforeSolidTiles.
* Moved screen renderers, metaballs and pixelated primitive drawing to use GeneralDrawLayer and subsequentially removed their own draw layer enums.
* Moved screen renderers, metaballs, particles, pixelated primitive drawing and pixelated drawers draw calls to MechanicalILChanges.
* Added TempParticle and TempParticleManager, used for defining temporary particle handlers in any file for short-term, fully-modifiable particle effects
* Removed ParticleAutoDrawingOverride and added a "CustomShader" property and "PrepareCustomShader" method to Particle.cs. These should be used in conjunction when wanting to apply shader effects to particles. If anything more precise is needed, use the new TempParticleManager class.
2025-11-15 16:41:52 -04:00
CongratsIsTrash 8b10aadab8 Odd Mushroom now copies particles 2025-11-12 12:24:31 -05:00
fryzahh 4b962167cf Pixelated dust variants
* Added the following pixelated variants for their respective ModDust types:
 * DiamondDustPixelated
 * SquareDustPixelated
 * SquashDustPixelated
 * SquashDustHollowPixelated
 * SquashDustTileTouchPixelated
 * UnstableDustPixelated
 * VoidDustPixelated
 * VoidDustInvertedPixelated

* Added missing documentation comment for the new "pixelate" parameter in GeneralParticleHandler.SpawnParticle.
2025-11-09 16:36:38 -04:00
fryzahh a16bd3ec6e Updated GeneralParticleHandler.SpawnParticle and reorganized Particle.cs
* Updated GeneralParticleHandler.SpawnParticle with an optional pixelate parameter. Set to true to have spawned particles be pixelated.
* Encapsulated GeneralParticleHandler's credits in a region.
* Cleaned up and reorganized Particle.cs.
* Added documentation comments for all fields and properties in Particle.cs.
2025-11-07 13:16:02 -04:00
fryzahh d95113418e ParticleAutoDrawingOverride + code cleanup, credits and bugfix
* Added ParticleAutoDrawingOverride, which allows one to override the automatic drawing of a particular particle type and manually and efficiently control how each instance is drawn in the world.
 * Subsequently added the OverrideAutomaticDrawing property to Particle.

* Multiple changes to GeneralParticleHander.cs:
 * Removed the noteToEveryone field, but moved the text to a comment at the top of the class.
  * Additionally, added credits to Luminance and their license notice since the new particle drawing logic was inspired by its system.
 * Reorganized fields based on their protection level.
* Renamed "particles," "particleTypes" and "particleTextures" to "activeParticles," "particleIDsByTypes" and "particleTexturesByIDs" respectively.
 * Added documentation for all internal fields
 * Moved the GetTexture and FreeSpaceAvailable methods up with the rest of the public static methods for consistency.

* The "ActivePixelatedDrawer_" fields in  are now cleared upon unloading the world instead of being set to null to prevent a null reference exception when leaving and reentering worlds.
2025-11-05 11:48:22 -04:00
fryzahh 42947a3100 Pixelation system + Particle system updates
* Added a global pixelated drawing system.
 * Added LightDustPixelated.
* Added the GeneralDrawLayer enum, which is now used for layered drawing in both the pixelation and particle systems.
* Updated the particle system:
 * Now supports drawing on multiple different layers now instead of just after everything else in the world has been drawn.
 * Collapsed the three draw lists in favor of two dictionaries, which store lists of non-pixelated and pixelated particles respectively based on their BlendState.
 * particlesToSpawnNextFrame is now a dictionary which stores Queues based on their draw layer.
2025-10-24 11:58:00 -04:00
fryzahh 30aa9bd9c2 Moved DrawPixelatedParticles call
- Pixelated Particle instances now draw at the same time as all other Particle instances
2025-05-28 01:42:44 -04:00
NycroV 330753128f Performance 2025-05-28 01:42:44 -04:00
NycroV d0320615b9 Fix scaling for different zoom levels 2025-05-28 01:42:44 -04:00
NycroV 3fc8392746 Scale matrices 2025-05-28 01:42:44 -04:00
fryzahh 0ba115ea69 Pixelated particles attempt
- Atempting to allow Particles to be pixelated. Works except for an issue with everything being wrongly offset and scaled
2025-05-28 01:42:44 -04:00
CongratsIsTrash dc90e31dc0 Replaced every instance of Main.netMode == NetmodeID.Server with Main.dedServ
And every Main.netMode != NetmodeID.Server with !Main.dedServ
2024-12-30 15:57:16 -05:00
Flowaria 9bfc1eaba1 Updated Comments 2024-09-30 03:37:06 -04:00
Flowaria a108305764 Added Justification Message for GeneralParticleHandler
- GetUninitializedObject is normally should not allowed, but this is special case
2024-09-30 03:37:06 -04:00
Flowaria a66fe1f08a GeneralParticleHandler as ModSystem, Added ReflectionUtil for Types Loading 2024-09-30 03:37:06 -04:00
Flowaria 740a9439a2 Fix: Particle related NullReferenceException on Server (#56) 2024-08-25 12:47:07 -04:00
GinYuH ba50bb246f split client and server configs
rebased by Ozzatron 15AUG2024 to fix conflicts
2024-08-15 16:54:43 -04:00
Xhack 25c87a8a64 Mantis Claw rework
Additionally, changed GeneralParticleHandler's code to account for AffectedByLight in default drawing
2024-07-03 18:57:23 +02:00
Ozzatron d8686f0db4 MERGE: Dominic's Floral Paradise / Perennial biome 2024-06-02 17:12:35 -04:00
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00
GinYuH 4a144285bf logs, particles, and cooldowns now automatically load 2024-02-03 19:56:11 -08:00
Mishiro Usui 306455d136 Fixed additive blend particles not rendering 2023-10-11 16:21:21 +01:00
Mishiro Usui d97fe15eb5 Additional offscreen culling shenanigans 2023-10-01 23:38:50 +01:00
AquaSG c2256d9ab3 particle culling 2023-09-22 19:46:57 -04:00
Altixal 8b92524e2e crunching + auto localizing config 2023-05-27 08:55:43 +07:00
DominicKarma 7b42f800fd Waterfalls. Final stuff before focusing on 1.4 2023-02-25 15:51:53 -05:00
IbanPlay 23d351209f Accidentally had to rewrite a particle twice 2022-07-11 19:05:37 -04:00
Ozzatron 9b76ff33dc Added a huge amount of TODOs for ModSystem de-godclassing 2022-06-13 16:16:39 -04:00
IbanPlay 0da2574efa mod.Code.GetTypes() => AssemblyManager.GetLoadableTypes(mod.Code) 2022-05-14 21:09:10 +02:00
Dominic 5e3db37979 More misc errors. 740 2022-04-08 13:10:52 -05:00
Ozzatron cb7c2f9feb Immediate result of tModPorter 2022-04-02 20:51:23 -04:00
Ozzatron 1cded2a64a Replaced all tabs with spaces everywhere 2022-04-02 15:15:08 -04:00
Ozzatron a6d9bb54b9 Removed all unnecessary usings in the entire mod 2022-04-02 15:08:04 -04:00
IbanPlay 8e34ac1e44 Particles don't get spawned serverside 2022-03-21 17:17:12 +01:00
DominicKarma 948cd5ef8f LoadParticleInstances mod call 2022-03-03 14:59:18 -06:00
IbanPlay 9e6a603b0a What is a RasterizerState.CullNone (Gravity swapped invisible vfx fix) 2022-03-03 14:37:26 -05:00
IbanPlay 2ff04c51b3 Particles get flipped if gravity pot is active 2022-03-03 14:37:26 -05:00
Cameron Ewell 500de12c21 Ark of the Elements and Ark of the Cosmos merge 2022-02-15 14:23:39 -05:00
IbanPlay d047e71e9c aotc work and better aligned charge bars for the ark line 2022-02-14 00:14:36 +01:00
DominicKarma 8dff4e384a Update GeneralParticleHandler.cs 2022-02-08 19:07:47 -06:00
IbanPlay 2d723ee26c Heavy smoke fx & Particle handler optimizations 2022-01-24 03:42:09 +01:00
IbanPlay 7f6e716427 Galaxia start 2022-01-21 23:03:31 +01:00
IbanPlay 46b2436577 Lots of particle effects. Broken biome blade is done 2022-01-08 00:03:03 +01:00