BasicItems.cpp 550 B

123456789101112131415161718192021
  1. #include "BasicItems.h"
  2. #include "ModelInfo.h"
  3. WoodStickItemType::WoodStickItemType()
  4. : ItemType(ID, "WoodenStick", 0, 0, ModelInfo("items.m3/stick", "items.ltdb/stick.png", 1))
  5. {}
  6. Item* WoodStickItemType::createItem() const
  7. {
  8. return createBasicItem("Wooden Stick", 1.f, 1.f, 10.f, 10.f, 0, 0, 0, 1, 0, 50);
  9. }
  10. ResinItemType::ResinItemType()
  11. : ItemType(ID, "Resin", 0, 0, ModelInfo("itemCube", "items.ltdb/resin.png", 6))
  12. {}
  13. Item* ResinItemType::createItem() const
  14. {
  15. return createBasicItem("Resin", 1.f, 1.f, 10.f, 10.f, 0, 0, 0, 1, 0, 50);
  16. }