Example #1
0
 public override void ChangeState(HubrisNet net, NetState state)
 {
     if (IsFriend(net))
     {
         net.ChangeState(net, state);
     }
 }
Example #2
0
 public void ChangeState(HubrisNet net, NetState nState)
 {
     if (net == this)
     {
         State = nState;
     }
 }
Example #3
0
 public override bool Disconnect(HubrisNet net)
 {
     if (IsFriend(net))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #4
0
 /// <summary>
 /// This method mimics the C++ "friend" declaration, by checking if the instance passed matches the singleton instance of the "owning" class
 /// </summary>
 protected override bool IsFriend(HubrisNet net)
 {
     if (net == HubrisNet.Instance)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 public abstract bool Connect(HubrisNet net);
Example #6
0
 protected abstract bool IsFriend(HubrisNet net);
Example #7
0
 public override void Send(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Example #8
0
 public override void Receive(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Example #9
0
 public abstract void ChangeState(HubrisNet net, NetState state);
Example #10
0
 public abstract void Receive(HubrisNet net);
Example #11
0
 public abstract void Send(HubrisNet net);
Example #12
0
 public abstract bool Disconnect(HubrisNet net);