示例#1
0
    // -- 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);
        }
        }
示例#2
0
 public Event.Value From(AnyEvent.Value evt)
 {
     return(new SpawnSquad());
 }