37 lines
632 B
GDScript3
37 lines
632 B
GDScript3
|
tool
|
||
|
class_name Equipment
|
||
|
extends Item
|
||
|
#
|
||
|
|
||
|
#05. signals
|
||
|
#06. enums
|
||
|
enum SLOT {
|
||
|
cloth_hand,
|
||
|
cloth_face,
|
||
|
cloth_head,
|
||
|
cloth_torso,
|
||
|
cloth_legs,
|
||
|
cloth_feet,
|
||
|
cloth_back,
|
||
|
weapon_hand_right,
|
||
|
weapon_hand_left,
|
||
|
weapon_hands,
|
||
|
weapon_hip_right,
|
||
|
weapon_hip_left,
|
||
|
weapon_back_right,
|
||
|
weapon_back_left,
|
||
|
weapon_holster_right,
|
||
|
weapon_holster_left
|
||
|
}
|
||
|
|
||
|
#07. constants
|
||
|
#08. exported variables
|
||
|
#09. public variables
|
||
|
#10. private variables
|
||
|
#11. onready variables
|
||
|
#12. optional built-in virtual _init method
|
||
|
#13. built-in virtual _ready method
|
||
|
#14. remaining built-in virtual methods
|
||
|
#15. public methods
|
||
|
#16. private methods
|