2022-06-11 23:12:52 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2022-06-13 23:33:19 +02:00
|
|
|
[System.Serializable]
|
|
|
|
public class Task
|
2022-06-11 23:12:52 +02:00
|
|
|
{
|
2022-06-13 23:33:19 +02:00
|
|
|
[SerializeField] public int id;
|
2022-10-22 18:04:21 +02:00
|
|
|
|
2022-06-11 23:12:52 +02:00
|
|
|
public int Id
|
|
|
|
{
|
|
|
|
get { return id; }
|
|
|
|
set { id = value; }
|
|
|
|
}
|
|
|
|
|
2022-06-13 23:33:19 +02:00
|
|
|
[SerializeField] public string title;
|
2022-10-22 18:04:21 +02:00
|
|
|
|
2022-06-11 23:12:52 +02:00
|
|
|
public string Title
|
|
|
|
{
|
|
|
|
get { return title; }
|
|
|
|
set { title = value; }
|
|
|
|
}
|
|
|
|
|
2022-06-13 23:33:19 +02:00
|
|
|
[SerializeField] public string description;
|
2022-10-22 18:04:21 +02:00
|
|
|
|
2022-06-11 23:12:52 +02:00
|
|
|
public string Description
|
|
|
|
{
|
|
|
|
get { return description; }
|
|
|
|
set { description = value; }
|
|
|
|
}
|
|
|
|
|
2022-10-22 18:04:21 +02:00
|
|
|
[SerializeField] public TaskDifficultyEnum difficulty;
|
2022-06-11 23:12:52 +02:00
|
|
|
|
|
|
|
public Task(int _id)
|
|
|
|
{
|
|
|
|
id = _id;
|
|
|
|
}
|
|
|
|
|
2022-10-22 18:04:21 +02:00
|
|
|
public Task(int _id, string _title, string _description, TaskDifficultyEnum difficulty)
|
2022-06-11 23:12:52 +02:00
|
|
|
{
|
|
|
|
this.id = _id;
|
|
|
|
this.title = _title;
|
|
|
|
this.description = _description;
|
2022-10-22 18:04:21 +02:00
|
|
|
this.difficulty = difficulty;
|
2022-06-11 23:12:52 +02:00
|
|
|
}
|
|
|
|
}
|