示例#1
0
        public override void Process(SimulationOwnershipChange simulationOwnershipChange)
        {
            foreach (OwnedGuid ownedGuid in simulationOwnershipChange.OwnedGuids)
            {
                if (multiplayerSession.Reservation.PlayerId == ownedGuid.PlayerId && ownedGuid.IsEntity)
                {
                    SimulateEntity(ownedGuid);
                }

                simulationOwnershipManager.AddOwnedGuid(ownedGuid.Guid, ownedGuid.PlayerId);
            }
        }