Added gps and ITask update
This commit is contained in:
@@ -2,10 +2,10 @@ using GeoSus.Client;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public enum TaskType
|
||||
/*public enum TaskType
|
||||
{
|
||||
Task //TODO: Typy úkolù
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ public interface ITask
|
||||
public string TaskID { get; } // Unikátní ID úkolu pro server
|
||||
public TaskType TaskType { get; } // Typ úkolu
|
||||
public string TaskName { get; } // Viditelný název úkolu
|
||||
public (double, double) TaskLocation { get; } // Polohy na mapì
|
||||
public Position TaskLocation { get; } // Polohy na mapì
|
||||
public bool IsCompleted { get; } // Stav dokonèení úkolu
|
||||
|
||||
void Initialize(Action<ITask> onCompleted); // Vytvoøení tasku + naètení postupu
|
||||
@@ -27,7 +27,7 @@ public class Wires : ITask{
|
||||
public string TaskID { get; set; } // Unikátní ID úkolu pro server
|
||||
public TaskType TaskType { get; set; } // Typ úkolu
|
||||
public string TaskName { get; set; } // Viditelný název úkolu
|
||||
public (double, double) TaskLocation { get; set; } // Poloha na mapì
|
||||
public Position TaskLocation { get; set; } // Poloha na mapì
|
||||
public bool IsCompleted { get; private set; } // Stav dokonèení úkolu
|
||||
private Action<ITask> _onCompleted;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user