weaponProp.ts 447 B

12345678910111213141516171819
  1. import { WEAPON_TYPE } from "../../utrl/gameEnum";
  2. /**武器逻辑属性 */
  3. export default class WeaponProp {
  4. /**id */
  5. id = 0;
  6. /**类型 */
  7. type = WEAPON_TYPE.close;
  8. /**伤害 */
  9. damage = 0;
  10. /**攻击距离 */
  11. range = 0;
  12. constructor(id: number, type: WEAPON_TYPE, damage: number, range: number) {
  13. this.id = id;
  14. this.type = type;
  15. this.damage = damage;
  16. this.range = range;
  17. }
  18. }