refactor
This commit is contained in:
13
resources/buildings/building.gd
Normal file
13
resources/buildings/building.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
class_name Building
|
||||
extends Resource
|
||||
|
||||
enum Type { FLOOR, WALL, DOOR, ROOF }
|
||||
|
||||
@export var building_id: StringName = &""
|
||||
@export var display_name: String = ""
|
||||
@export var type: Type = Type.WALL
|
||||
@export var size: Vector3 = Vector3(1, 1, 1)
|
||||
@export var color: Color = Color.GRAY
|
||||
@export var icon: Texture2D
|
||||
@export var material_item: Item
|
||||
@export var material_cost: int = 1
|
||||
Reference in New Issue
Block a user