conflict resolve
This commit is contained in:
8
Assets/Build Profiles.meta
Normal file
8
Assets/Build Profiles.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 92df50b8fba934144a4c4dcaf506f9b4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 74c99196e7d046a4497d6aa5ba358650
|
guid: bbd26b895bc2b894b8989c08d9fd9197
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
@@ -1,53 +1,21 @@
|
|||||||
|
//using GeoSus.Client;
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public enum TaskType
|
public enum TaskType
|
||||||
{
|
{
|
||||||
Task //TODO: Typy úkolù
|
Task
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public interface ITask
|
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 bool IsCompleted { get; } // Stav dokonèení úkolu
|
|
||||||
|
|
||||||
void Initialize(Action<ITask> onCompleted); // Vytvoøení tasku + naètení postupu
|
|
||||||
void ExitTask(Action<ITask> onExit); // Pøi opuštìní úkolu poslat hotovo / uložit postup / reset
|
|
||||||
void Complete(); // Oznaèit úkol jako dokonèený, poslat na server a zavøít
|
|
||||||
|
|
||||||
}
|
|
||||||
/* Ukázoková implementace ITask
|
|
||||||
public class Wires : ITask{
|
|
||||||
public string TaskID { get; set; } // Unikátní ID úkolu pro server
|
public string TaskID { get; set; } // Unikátní ID úkolu pro server
|
||||||
public TaskType TaskType { get; set; } // Typ úkolu
|
public TaskType TaskType { get; set; } // Typ úkolu
|
||||||
public string TaskName { get; set; } // Viditelný název úkolu
|
public string TaskName { get; set; } // Viditelný název úkolu
|
||||||
public (double, double) TaskLocation { get; set; } // Poloha na mapì
|
public (double, double) TaskLocation { get; set; } // Poloha na mapě
|
||||||
public bool IsCompleted { get; private set; } // Stav dokonèení úkolu
|
public bool IsCompleted { get; } // Stav dokončení úkolu
|
||||||
private Action<ITask> _onCompleted;
|
|
||||||
|
|
||||||
public void Initialize(Action<ITask> onCompleted) // Vytvoøení tasku
|
|
||||||
{
|
|
||||||
IsCompleted = false;
|
|
||||||
_onCompleted = onCompleted;
|
|
||||||
}
|
|
||||||
public void ExitTask(Action<ITask> onExit) //Zavøení tasku
|
|
||||||
{
|
|
||||||
onExit?.Invoke(this);
|
|
||||||
}
|
|
||||||
public void Complete() // Dokonèení tasku a zavøení
|
|
||||||
{
|
|
||||||
IsCompleted = true;
|
|
||||||
_onCompleted?.Invoke(this);
|
|
||||||
ExitTask(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void Initialize(Action<ITask> onCompleted); // Vytvoření tasku
|
||||||
|
void ExitTask(Action<ITask> onExit); // Při opuštění úkolu
|
||||||
|
void Complete(); // Označit úkol jako dokončený
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 743fed9d96a90254c88556de9fee92b0
|
guid: 00f17be43b5049645915f193bf99516b
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: bfd97d0fee743f945a3d47b571fe9f20
|
guid: 55b6abf6106d3da4d9a6d0550a804f3b
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 2f6ce7f674a77664ead5dbb89193e587
|
guid: 2230bf768ecb84610af77bea6cdd7074
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
7
Assets/SampleScene.unity.meta
Normal file
7
Assets/SampleScene.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8afa6ce05eb7dba4c894b910786e3baf
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: fe6cecdde8bb6e1489d0b7e5b793ce84
|
guid: 5e17b3a6c19f5404d8d097400a844a60
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 6a18d9b328b6a794da5d050347950362
|
guid: 8afa6ce05eb7dba4c894b910786e3baf
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b8ce5b30e6200134bae071db3ae43149
|
guid: 50c3453b214b4c24487f630d82fff48b
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3c41f51487bbe394b9b8568d1b254bd4
|
guid: 148cdcfbaffe4a24b85ef92b75ce4ff7
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: bbad6d4e785a4584da7dda5f1bda30d5
|
guid: 92df50b8fba934144a4c4dcaf506f9b4
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user