mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-05 03:43:40 +00:00
52 lines
1.7 KiB
C++
52 lines
1.7 KiB
C++
// This Header is auto generated by BDSLiteLoader Toolchain
|
|
#pragma once
|
|
#define AUTO_GENERATED
|
|
#include "../Global.h"
|
|
|
|
#define BEFORE_EXTRA
|
|
|
|
#undef BEFORE_EXTRA
|
|
|
|
class AttributeInstance {
|
|
|
|
#define AFTER_EXTRA
|
|
|
|
#undef AFTER_EXTRA
|
|
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_ATTRIBUTEINSTANCE
|
|
public:
|
|
class AttributeInstance& operator=(class AttributeInstance const &) = delete;
|
|
AttributeInstance(class AttributeInstance const &) = delete;
|
|
AttributeInstance() = delete;
|
|
#endif
|
|
|
|
public:
|
|
/*0*/ virtual ~AttributeInstance();
|
|
/*1*/ virtual void tick();
|
|
#ifdef ENABLE_VIRTUAL_FAKESYMBOL_ATTRIBUTEINSTANCE
|
|
#endif
|
|
MCAPI void addBuff(class AttributeBuff const &);
|
|
MCAPI void addModifier(class std::shared_ptr<class AttributeModifier>);
|
|
MCAPI void addModifier(class AttributeModifier const &);
|
|
MCAPI std::vector<class AttributeModifier> getModifiers(int) const;
|
|
MCAPI std::vector<class AttributeModifier> getModifiers() const;
|
|
MCAPI bool hasModifier(class std::shared_ptr<class AttributeModifier>) const;
|
|
MCAPI bool hasModifier(class AttributeModifier const &) const;
|
|
MCAPI void removeModifier(class std::shared_ptr<class AttributeModifier>);
|
|
MCAPI void removeModifier(class AttributeModifier const &);
|
|
MCAPI void resetToDefaultValue();
|
|
MCAPI void resetToMaxValue();
|
|
MCAPI void resetToMinValue();
|
|
MCAPI void setDefaultValue(float, int);
|
|
MCAPI void setDelegate(class std::shared_ptr<class AttributeInstanceDelegate>);
|
|
MCAPI void setMaxValue(float);
|
|
MCAPI void setRange(float, float, float);
|
|
|
|
//private:
|
|
MCAPI float _calculateValue();
|
|
MCAPI float _calculateValue(class AttributeBuff const &);
|
|
MCAPI float _sanitizeValue(float);
|
|
MCAPI void _setDirty();
|
|
|
|
private:
|
|
|
|
}; |