示例#1
0
        public PlayerMovedEvent(IPlaverMovedData data)
        {
            if (data is PlaverMovedDataOnGround)
            {
                Mode = PlaverMovedMode.OnGround;
            }
            else if (data is PlaverMovedDataVector3)
            {
                Mode = PlaverMovedMode.Vector3;
            }
            else if (data is PlaverMovedDataYawPitch)
            {
                Mode = PlaverMovedMode.YawPitch;
            }
            else if (data is PlaverMovedDataAll)
            {
                Mode = PlaverMovedMode.All;
            }

            Data = data;
        }
 public IAsyncResult BeginPlayerMoved(PlaverMovedMode mode, IPlaverMovedData data, AsyncCallback asyncCallback, object state)
 {
     return(_networkHandler.DoAsyncSending(typeof(BeginPlayerMoved), new BeginPlayerMovedParameters(mode, data, asyncCallback, state)));
 }
示例#3
0
 public PlayerMovedEvent(PlaverMovedMode mode, IPlaverMovedData data)
 {
     Mode = mode; Data = data;
 }
 public IAsyncResult BeginPlayerMoved(PlaverMovedMode mode, IPlaverMovedData data, AsyncCallback asyncCallback, object state)
 {
     return _networkHandler.DoAsyncSending(typeof(BeginPlayerMoved), new BeginPlayerMovedParameters(mode, data, asyncCallback, state));
 }