protected override void OnProcessOutputSchema(MutableObject newSchema) { var entries = Entries.GetEntries(newSchema); foreach (var entry in entries) { XAxisTarget.SetValue(0, entry); ZAxisTarget.SetValue(0, entry); } Router.TransmitAllSchema(newSchema); }
protected override MutableObject Mutate(MutableObject mutable) { var metaEntries = Entries.GetEntries(mutable); //metaEntries = metaEntries.OrderBy( lMut => SortCriterion.GetValue( lMut ) ).ToList(); int index = 0; foreach (var metaEntry in metaEntries) { XAxisTarget.SetValue(index % GridWidth.GetValue(metaEntry), metaEntry); ZAxisTarget.SetValue(index / GridWidth.GetValue(metaEntry), metaEntry); index++; } return(mutable); }
public override IEnumerator ReceivePayload(VisualPayload payload) { var entries = IndexValue.GetEntries(payload.Data); foreach (var entry in entries) { var location = ComputeXYPosition(IndexValue.GetValue(entry)); XAxisTarget.SetValue(location.x, entry); YAxisTarget.SetValue(location.y, entry); } var iterator = Router.TransmitAll(payload); while (iterator.MoveNext()) { yield return(null); } }