Esempio n. 1
0
 public void SendTriggerTo(int contID)
 {
     network_data.trigger m1 = new network_data.trigger();
     m1.set(-1, mychannel.GetChannel());
     m1.netID  = netID;
     m1.count  = counter;
     m1.on     = on;
     m1.accept = link.Accept(on, contID);
     byte[] data1 = network_utils.nData.Instance.SerializeMsg <network_data.trigger>(m1);
     mychannel.GetNetwork().Send(contID, data1);
 }
Esempio n. 2
0
 public void SendRequest(int contID)
 {
     if (mychannel.GetNetwork().IsClient())
     {
         network_data.trigger m1 = new network_data.trigger();
         m1.set(contID, mychannel.GetChannel());
         m1.netID = netID;
         m1.count = counter;
         m1.on    = on;
         byte[] data1 = network_utils.nData.Instance.SerializeMsg <network_data.trigger>(m1);
         mychannel.GetNetwork().Send(contID, data1);
     }
 }
Esempio n. 3
0
 void SendTrigger(int contID, bool accept)
 {
     network_data.trigger m1 = new network_data.trigger();
     m1.set(contID, mychannel.GetChannel());
     m1.netID  = netID;
     m1.count  = counter;
     m1.on     = on;
     m1.accept = accept;
     byte[] data1 = network_utils.nData.Instance.SerializeMsg <network_data.trigger>(m1);
     mychannel.SendToChannel(ref data1);
     if (!mychannel.GetNetwork().IsClient() && m1.accept)
     {
         DoActivate(contID);
     }
 }