Scriptum/Assets/Scripts/REFACTORING/Models/Task/Task.cs
2022-11-06 20:46:25 +01:00

47 lines
904 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Task
{
[SerializeField] public int id;
public int Id
{
get { return id; }
set { id = value; }
}
[SerializeField] public string title;
public string Title
{
get { return title; }
set { title = value; }
}
[SerializeField] public string description;
public string Description
{
get { return description; }
set { description = value; }
}
[SerializeField] public TaskDifficultyEnum difficulty;
public Task(int _id)
{
id = _id;
}
public Task(int _id, string _title, string _description, TaskDifficultyEnum difficulty)
{
this.id = _id;
this.title = _title;
this.description = _description;
this.difficulty = difficulty;
}
}