private void handleSyncMobile(SyncObjectLocation syncMobile)
 {
     Logger.Log("SyncMobile ID: " + syncMobile.Serial + "  " + syncMobile.Location.ToString());
     foreach (var p in OtherPlayers)
         if (p.Toon.Serial == syncMobile.Serial)
             p.handleMovementSync(syncMobile);
 }
 internal void handleMovementSync(SyncObjectLocation syncMobile)
 {
     Destination = Helpers.Helper.getVector(syncMobile.Location);
     Logger.Log(syncMobile.Serial + " Setting Dest to : " + syncMobile.Location.ToString());
 }
Beispiel #3
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");
 }
 public void AcceptMoveMobileMessage(SyncObjectLocation sync)
 {
     Destination =  Helpers.Helper.getVector(sync.Location);
 }