/// <summary> /// Sets the execution from for this side. /// </summary> public void SetCurrentFrame(IntercomSide side, int value) { Shared.Write((long)side + 2, value); }
/// <summary> /// The current execution frame for this side. /// </summary> public int GetCurrentFrame(IntercomSide side) { return(Shared.ReadInt32((long)side + 2)); }
/// <summary> /// Is this intercom finished reading? /// </summary> public ReadingState GetReadingState(IntercomSide source) { return((ReadingState)Shared.ReadByte((long)source)); }
/// <summary> /// Sets the read state of this source to a value. /// </summary> public void SetReadingState(IntercomSide source, ReadingState state) { Shared.Write((long)source, (byte)state); }
public Intercom(IntercomSide source, string identifier) { MySide = source; Identifier = identifier; Invoke("Hello World!"); }