Heakth.h 523 B

1234567891011121314151617181920
  1. /*
  2. * 2D Game Engine
  3. * Heakth.h:
  4. * Based on pikuma.com 2D game engine in C++ and Lua course
  5. * Copyright (c) 2021 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 27/02/2021.
  8. */
  9. #ifndef GAMEENGINE_SOURCE_INCLUDE_COMPONENTS_HEAKTH_H
  10. #define GAMEENGINE_SOURCE_INCLUDE_COMPONENTS_HEAKTH_H
  11. struct HealthComponent
  12. {
  13. uint8_t healthPercentage;
  14. HealthComponent(uint8_t healthPercentage = 0) : healthPercentage(healthPercentage) {};
  15. };
  16. #endif /* GAMEENGINE_SOURCE_INCLUDE_COMPONENTS_HEAKTH_H */