示例#1
0
 /// <summary>
 /// Handles sending out movement update messages to appropriate toons
 /// </summary>
 /// <param name="syncClient"></param>
 /// <param name="serial"></param>
 private void SendMovementUpdate(MoveRequest syncClient, int serial)
 {
     SyncObjectLocation m = new SyncObjectLocation();
     m.Serial = serial;
     m.Location = new Vector3D(syncClient.Location);
     foreach (Account p in Toons)
         if (p.CurrentToon.Serial != serial)
             m.Send(p.Client.GetStream());
     Logger.Log("Sent SyncMobile to: " + Toons.Count + " players");
 }