예제 #1
0
 /// <summary>
 /// Sets the execution from for this side.
 /// </summary>
 public void SetCurrentFrame(IntercomSide side, int value)
 {
     Shared.Write((long)side + 2, value);
 }
예제 #2
0
 /// <summary>
 /// The current execution frame for this side.
 /// </summary>
 public int GetCurrentFrame(IntercomSide side)
 {
     return(Shared.ReadInt32((long)side + 2));
 }
예제 #3
0
 /// <summary>
 /// Is this intercom finished reading?
 /// </summary>
 public ReadingState GetReadingState(IntercomSide source)
 {
     return((ReadingState)Shared.ReadByte((long)source));
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 public Intercom(IntercomSide source, string identifier)
 {
     MySide     = source;
     Identifier = identifier;
     Invoke("Hello World!");
 }