Scriptum/Assets/Scripts/Task/Task.cs
2022-06-13 23:33:19 +02:00

53 lines
1005 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum TaskHardship {
Easy,
Normal,
Classic,
Medium,
Hard,
Impossible
}
[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 TaskHardship hardnessLevel;
public Task(int _id)
{
id = _id;
}
public Task(int _id, string _title, string _description, TaskHardship _hardnessLevel)
{
this.id = _id;
this.title = _title;
this.description = _description;
this.hardnessLevel = _hardnessLevel;
}
}