3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/particle/ParticleLayer.h"
7#include "mc/comprehensive/ParticleType.h"
8#include "mc/deps/core/container/slot_map_handle.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/minecraft_renderer/renderer/MaterialPtr.h"
12#include "mc/util/Random.h"
36 using ParticleBin = ::std::vector<::std::unique_ptr<::Particle>>;
38 using ParticleTextureMap = ::std::unordered_map<::ParticleType, ::std::vector<::std::unique_ptr<::Particle>>>;
43 ::ll::TypedStorage<8, 2448, ::std::vector<::std::unique_ptr<::Particle>>[102]> mInactiveParticlesPool;
44 ::ll::TypedStorage<8, 8, ::Level&> mLevel;
45 ::ll::TypedStorage<8, 6528, ::std::unordered_map<::ParticleType, ::std::vector<::std::unique_ptr<::Particle>>>[102]>
47 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::CustomParticle>>> customParticles;
48 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::Particle>>> mNewParticles;
49 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::SeasonsRenderer>> mSeasons;
50 ::ll::TypedStorage<8, 8, ::LightTexture&> mLightTexture;
51 ::ll::TypedStorage<8, 2544, ::Random> random;
52 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> opaqueMat;
53 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> alphaTestMat;
54 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> blendMat;
55 ::ll::TypedStorage<4, 408, uint[102]> maxParticleCount;
56 ::ll::TypedStorage<4, 408, uint[102]> particleCount;
57 ::ll::TypedStorage<1, 1, bool> mTemporaryCameraActive;
58 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ParticleType, ::HashedString>> mNewParticleSystemJsonLookup;
64 ::Bedrock::slot_map_handle<::std::unique_ptr<::ParticleSystem::ParticleEmitter>, 64, 32>>>
65 mNewParticleSystemMap;
70 ParticleEngine& operator=(ParticleEngine
const&);
71 ParticleEngine(ParticleEngine
const&);
77 virtual ~ParticleEngine() ;
85 ::Bedrock::NotNullNonOwnerPtr<::SeasonsRenderer> seasons,
86 ::LightTexture& lightTexture
89 MCAPI ::std::unique_ptr<::Particle> _create(::ParticleType type);
91 MCAPI
void _emitParticleNew(
92 ::ParticleSystemEngine& particleSystemEngine,
99 MCAPI ::ParticleLayerRenderObject _extractParticleLayer(
100 ::ScreenContext& screenContext,
101 ::ParticleRenderContext
const& particleRenderContext,
102 ::ParticleLayer particleLayer,
103 ::mce::MaterialPtr
const& mat
106 MCAPI
void addCustomParticle(::std::unique_ptr<::CustomParticle> particle);
110 MCAPI ::ParticleRenderObjectCollection
111 extract(::ScreenContext& screenContext, ::Vec3
const& cameraPos, ::Vec3
const& viewOff,
float minDist)
const;
113 MCAPI ::ParticleRenderObjectCollection extractEmptyCollection(::ScreenContext& screenContext)
const;
115 MCAPI ::gsl::final_action<::std::function<void()>> forceTessellationForTemporaryCamera();
117 MCAPI ::Particle* instance(
122 ::ParticleSystemEngine* particleSystemEngine,
123 ::CompoundTag
const* tag
126 MCAPI
void onDimensionChanged();
128 MCAPI
void renderCustomParticles(::BaseActorRenderContext& renderContext, ::Vec3
const& viewOff,
float minDist);
136 MCAPI
static void render(::ScreenContext& screenContext, ::ParticleLayerRenderObject
const& particleState);
143 $ctor(::Level& level, ::Bedrock::NotNullNonOwnerPtr<::SeasonsRenderer> seasons, ::LightTexture& lightTexture);
Definition BaseActorRenderContext.h:5
Definition EnableNonOwnerReferences.h:7
Definition CompoundTag.h:23
Definition CustomParticle.h:5
Definition HashedString.h:5
Definition LightTexture.h:5
Definition ParticleEngine.h:5
static MCAPI void ** $vftable()
Definition ParticleSystemEngine.h:5
Definition ParticleEmitter.h:7
Definition ScreenContext.h:5
Definition SeasonsRenderer.h:5
Definition ParticleLayerRenderObject.h:5
Definition ParticleRenderContext.h:5
Definition ParticleRenderObjectCollection.h:5