ยืนยัน
func DealDamage(target entity<Combatable>, attacker entity<Combatable>, type DamageType, damage int)
go
ข้อมูลพารามิเตอร์
ใส่ค่า
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
| เป้าหมาย | FightingEntity | เอนทิตีเกมเสียหาย |
| ผู้โจมตี | FightingEntity | เอนทิตีเกมที่สร้างความเสียหาย |
| ประเภท | DamageType | ประเภทความเสียหาย |
| ความเสียหาย | Int | ความเสียหาย |