#pragma once #include "Entity.h" #include "EntityType.h" class ItemEntityType; class ItemEntity : public Entity { private: ItemSlot* slot; ItemEntity( Framework::Vec3 location, int dimensionId, int entityId ); public: void tick( const Dimension* zDimension ) override; void api( Framework::StreamReader* zRequest, NetworkResponse* zResponse ) override; void onFall( float collisionSpeed ) override; friend ItemEntityType; }; class ItemEntityType : public EntityType { REGISTRABLE( ItemEntityType ) public: ItemEntityType(); virtual Entity* createEntity( Framework::Vec3 position, int dimensionId, int entityId ) const override; }; REGISTER( ItemEntityType, EntityType )