Ejemplo n.º 1
0
        //public void SendApplyPoint(int ownerId, int shapeId, double x, double y)
        //{
        //    if (peer == null || peer.PeerState != PeerStateValue.Connected)
        //        return;

        //    peer.OpCustom((byte)DiscussionOpCode.ApplyPointRequest,
        //                   PointMove.Write(ownerId, shapeId, x, y),
        //                   false);
        //}

        public void SendSyncState(int shapeId, ShapeState st)
        {
            if (peer == null || peer.PeerState != PeerStateValue.Connected)
            {
                return;
            }

            peer.OpCustom((byte)DiscussionOpCode.StateSyncRequest,
                          st.ToDict(),
                          true);
            Service();
        }