fix message add

pull/5/head
Evan Hemsley 2019-06-16 18:03:57 -07:00
parent cfc5ca178f
commit c2abd4b292
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,8 @@ namespace Encompass
{
messageTypeToMessages.Add(typeof(TMessage), new List<IMessage>());
}
messageTypeToMessages[typeof(TMessage)].Add(message);
}
internal void ClearMessages()

View File

@ -12,7 +12,7 @@ namespace Tests
static IEnumerable<MockComponent> resultComponents;
static MockComponent resultComponent;
static IEnumerable<MockMessage> resultMessages;
static List<MockMessage> resultMessages;
public class ReadComponentsTestEngine : Engine
{
@ -197,7 +197,7 @@ namespace Tests
{
public override void Update(float dt)
{
resultMessages = this.ReadMessages<MockMessage>();
resultMessages = this.ReadMessages<MockMessage>().ToList();
}
}