Unity.Mathematics Converters and Galaxy Upload
This commit is contained in:
parent
1df670351b
commit
433a7b4ae4
24 changed files with 910 additions and 351 deletions
|
|
@ -8,6 +8,8 @@ public class DatabaseCache
|
|||
{
|
||||
public event Action<DatabaseEntry> OnDataUpdateLocal;
|
||||
public event Action<DatabaseEntry> OnDataUpdateRemote;
|
||||
public event Action<DatabaseEntry> OnDataDeleteLocal;
|
||||
|
||||
|
||||
public Action<string> Logger = Console.WriteLine;
|
||||
|
||||
|
|
@ -65,4 +67,15 @@ public class DatabaseCache
|
|||
{
|
||||
return _types[typeof(T)].Values.Cast<T>();
|
||||
}
|
||||
|
||||
public void Delete(DatabaseEntry entry)
|
||||
{
|
||||
_entries.Remove(entry.ID);
|
||||
foreach (var type in _types.Values)
|
||||
{
|
||||
type.Remove(entry.ID);
|
||||
}
|
||||
|
||||
OnDataDeleteLocal?.Invoke(entry);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue