Updated all spell scripts

This commit is contained in:
Hondacrx
2025-10-13 13:23:31 -04:00
parent 3c4602e4a1
commit 3e028633ba
46 changed files with 33364 additions and 26554 deletions
+21
View File
@@ -687,6 +687,7 @@ namespace Game.Maps
WorldObjectSearcherContinuation ShouldContinue();
void Insert(T obj);
T GetResult();
bool HasResult();
}
class SearcherFirstObjectResult<T>() : IResultInserter<T>
@@ -703,6 +704,11 @@ namespace Game.Maps
result = obj;
}
public bool HasResult()
{
return result != null;
}
public T GetResult()
{
return result;
@@ -723,6 +729,11 @@ namespace Game.Maps
result = obj;
}
public bool HasResult()
{
return result != null;
}
public T GetResult()
{
return result;
@@ -743,6 +754,11 @@ namespace Game.Maps
container.Add(obj);
}
public bool HasResult()
{
return !container.Empty();
}
public T GetResult()
{
return default;
@@ -876,6 +892,11 @@ namespace Game.Maps
}
}
public bool HasResult()
{
return resultInserter.HasResult();
}
public T GetResult()
{
return resultInserter.GetResult();