SummerDay/addons/summer_day/data/blueprint/blueprint.gd
2022-01-01 13:18:55 +01:00

32 lines
563 B
GDScript

# This class can be abstracted and is meant to handle the drawing workflow
# of each individual model.
tool
extends Resource
class_name SummerDayBlueprint
export(PackedScene) var model = null
var active = true # Not handled right now.
func _create_model() -> PackedScene: # Virtual.
return null
func _create_cell(table: ImageTexture) -> SummerDayCell: # Virtual.
return null
func _input(event): # Virtual.
pass
func get_model() -> PackedScene:
if model == null:
model = _create_model()
return model
func get_allocation_size() -> int:
return 0