boronotes/data/note.gd

16 lines
287 B
GDScript

class_name Note
extends Resource
const uuid = preload("res://utils/uuid.gd")
@export var parent_id: String
@export var id: String
@export var title: String
func _init(note_title: String, note_parent_id: String = ""):
id = uuid.v4()
title = note_title
parent_id = note_parent_id