protected void Emit(Signal signal, InteractiveBehaviour target) { if (target == null) { return; } target.OnSignalInternal(signal); }
internal string Summary(InteractiveBehaviour target) { string txt = string.Empty; txt += "[SIGNAL] " + name + "\n"; txt += source.unitName + " => " + target.unitName + "\n"; foreach (var item in data) { txt += ">> " + item.Key + ": " + item.Value + "\n"; } return(txt); }
internal Signal(InteractiveBehaviour source, string name) { if (source == null) { throw new ArgumentNullException("source"); } this.name = name; this.source = source; data = new Dictionary <string, object>(); isBlocked = false; }