#pragma once #include "entity.h" // Construction and destruction (0065d130) are the defaults. // A slot machine, beggar or other paying machine (Lua's EntitySlot), which pays out a prize: its state, the prize it // shows and the save data its donations count into. struct Entity_Slot : Entity { ANM2 prizeAnm2; PersistentGameData* persistentData = nullptr; int donationValue = 0; int prizeCollectible = 0; int prizeType = 0; int state = 0; uint32_t triggerTimer = 0; int16_t shellGameAnimationIndex = 0; int16_t timeout = 0; int16_t unkShort1 = 0; uint16_t touch = 0; bool isUnknown418 = false; bool isUnknown544 = false; void Init(int type, int variant, int subType, uint32_t initSeed) override; void Update() override; void Render(const Vector& offset) override; bool TakeDamage(float damage, uint64_t damageFlags, const EntityRef& source, int damageCountdown) override; bool HandleCollision(Entity* collider, bool isLow) override; void spawn_break_drops(); void SetPrizeType(int prizeType); private: void counter_show(int count); };