コード例 #1
0
        public void RequestSimulationLock(string guid, SimulationLockType lockType, LockRequestCompleted whenCompleted)
        {
            SimulationOwnershipRequest ownershipRequest = new SimulationOwnershipRequest(muliplayerSession.Reservation.PlayerId, guid, lockType);

            packetSender.Send(ownershipRequest);
            completeFunctionsByGuid[guid] = whenCompleted;
        }
コード例 #2
0
 public void TryToRequestOwnership(string guid)
 {
     if (!ownedGuidsToPlayer.ContainsKey(guid) && !requestedGuids.Contains(guid))
     {
         SimulationOwnershipRequest ownershipRequest = new SimulationOwnershipRequest(muliplayerSession.Reservation.PlayerId, guid);
         packetSender.Send(ownershipRequest);
         requestedGuids.Add(guid);
     }
 }
コード例 #3
0
        public void RequestSimulationLock(NitroxId id, SimulationLockType lockType)
        {
            SimulationOwnershipRequest ownershipRequest = new SimulationOwnershipRequest(muliplayerSession.Reservation.PlayerId, id, lockType);

            packetSender.Send(ownershipRequest);
        }