Scriptum/Assets/Scripts/Task/Task.cs

53 lines
1005 B
C#
Raw Normal View History

2022-06-11 23:12:52 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum TaskHardship {
Easy,
Normal,
Classic,
Medium,
Hard,
Impossible
}
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-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-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-06-11 23:12:52 +02:00
public string Description
{
get { return description; }
set { description = value; }
}
2022-06-13 23:33:19 +02:00
[SerializeField] public TaskHardship hardnessLevel;
2022-06-11 23:12:52 +02:00
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;
}
}