Added some Level 5 implementation and reorganized file structure
This commit is contained in:
16
Player/Item.gd
Normal file
16
Player/Item.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
# Item Class
|
||||
|
||||
var name: String
|
||||
var type: String
|
||||
|
||||
|
||||
func _init(name: String, type: String) -> void:
|
||||
self.name = name
|
||||
self.type = type
|
||||
return
|
||||
|
||||
|
||||
func equals(other) -> bool:
|
||||
if(self.name == other.name and self.type == other.type):
|
||||
return true
|
||||
return false
|
Reference in New Issue
Block a user