Exemplo n.º 1
0
        private void OnEntityLevelChanged([JetBrains.Annotations.NotNull] NetworkEntityGuid entity, [JetBrains.Annotations.NotNull] EntityDataChangedArgs <int> changeData)
        {
            if (entity == null)
            {
                throw new ArgumentNullException(nameof(entity));
            }
            if (changeData == null)
            {
                throw new ArgumentNullException(nameof(changeData));
            }

            IWorldObject worldObject = WorldObjectMappable.RetrieveEntity(entity);

            worldObject.SetLevel(changeData.NewValue);
        }