public ConditionState(bool peek, PacketDataElement testMember, IReadOnlyList <CaseState> cases) { Members = new List <PacketDataElement> { testMember }; SetMemberAs(MemberProperty.Peek, peek); SetMemberAs(MemberProperty.Cases, cases); }
public PacketState WithData(PacketDataElement dataElement) { var list = new List <PacketDataElement>(Data) { dataElement }; return(new PacketState(PacketName, BasePacketName, list)); }