public void RequestSimulationLock(string guid, SimulationLockType lockType, LockRequestCompleted whenCompleted) { SimulationOwnershipRequest ownershipRequest = new SimulationOwnershipRequest(muliplayerSession.Reservation.PlayerId, guid, lockType); packetSender.Send(ownershipRequest); completeFunctionsByGuid[guid] = whenCompleted; }
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); } }
public void RequestSimulationLock(NitroxId id, SimulationLockType lockType) { SimulationOwnershipRequest ownershipRequest = new SimulationOwnershipRequest(muliplayerSession.Reservation.PlayerId, id, lockType); packetSender.Send(ownershipRequest); }