Add conditional spawning component (#1069)

* Add conditional spawning component

* Remove null checks

* Remove leftover return

* Properly spawn items when game rule gets added

* Fix duplicate uids in saltern

* GameRules returns IEnumerable using yield.
This commit is contained in:
Víctor Aguilera Puerto
2020-06-05 19:42:43 +02:00
committed by GitHub
parent 470f81fca1
commit e1df008bce
11 changed files with 429 additions and 1 deletions

View File

@@ -19,6 +19,12 @@ namespace Content.IntegrationTests
remove { }
}
public event Action<GameRuleAddedEventArgs> OnRuleAdded
{
add{ }
remove { }
}
public void Initialize()
{
}
@@ -64,6 +70,11 @@ namespace Content.IntegrationTests
return new T();
}
public bool HasGameRule(Type type)
{
return false;
}
public void RemoveGameRule(GameRule rule)
{
}