// -- c/helpers private Event.Value.Factory GetFactory(AnyEvent.Value val) { switch (val.Type) { case EventType.SpawnSquad: return(new SpawnSquad.Factory()); default: { Assert.IsTrue(false, $"tried to decode event w/ unknown type: {val.Type}"); return(default); } }
public Event.Value From(AnyEvent.Value evt) { return(new SpawnSquad()); }