Updated all spell scripts
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user