Beispiel #1
0
        /// <inheritdoc />
        public void RemoveEntity(NetworkEntityGuid guid)
        {
            LockObject.EnterWriteLock();
            try
            {
                if (!isEntityKnown(guid))
                {
                    throw new InvalidOperationException($"Cannot removed EntityGuid: {guid} because does not exists in Set: {nameof(DefaultThreadUnSafeKnownEntitySet)}.");
                }

                InternalKnownSet.Remove(guid);
            }
            finally
            {
                LockObject.ExitWriteLock();
            }
        }