Entity.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #include "../utils/util.h"
  3. #include "../il2cpp/il2cpp-appdata.h"
  4. #include "../il2cpp/il2cppUtils.h"
  5. namespace cheat::game {
  6. class Entity {
  7. public:
  8. Entity(app::BaseEntity* rawEntity);
  9. //std::string& name();
  10. app::BaseEntity* raw();
  11. uint32_t runtimeID();
  12. uint32_t configID();
  13. app::EntityType__Enum_1 type();
  14. app::Vector3 relativePosition() const;
  15. bool isGadget() const;
  16. bool isAvatar() const;
  17. bool isChest();
  18. //bool isItem();
  19. bool isLoaded() const;
  20. void setRelativePosition(const app::Vector3& value);
  21. app::GameObject* gameObject();
  22. app::Animator* animator();
  23. app::Rigidbody* rigidbody();
  24. float distance(Entity* entity);
  25. float distance(app::BaseEntity* rawEntity);
  26. float distance(const app::Vector3& point);
  27. float distance(const app::Vector2& levelPoint);
  28. app::Vector3 absolutePosition();
  29. app::Vector2 levelPosition();
  30. std::string& name();
  31. app::Vector3 forward() const;
  32. app::Vector3 back() const;
  33. app::Vector3 right() const;
  34. app::Vector3 left() const;
  35. app::Vector3 up() const;
  36. app::Vector3 down() const;
  37. private:
  38. app::BaseEntity* m_RawEntity;
  39. bool m_HasName;
  40. std::string m_Name;
  41. mutable bool m_IsLoaded;
  42. };
  43. }