Esempio n. 1
0
        private void ProcessCreatureEntries([NotNull] IReadOnlyCollection <CreatureInstanceModel> instanceEntries)
        {
            if (instanceEntries == null)
            {
                throw new ArgumentNullException(nameof(instanceEntries));
            }

            foreach (var entry in instanceEntries)
            {
                NetworkEntityGuid guid = CreatureGuidFactory.Create(entry);
                EntityCreationRequester.PublishEvent(this, new EntityCreationRequestedEventArgs(guid));
            }
        }
Esempio n. 2
0
        private void ProcessGameObjectEntries([NotNull] IEnumerable <GameObjectInstanceModel> instanceEntries)
        {
            if (instanceEntries == null)
            {
                throw new ArgumentNullException(nameof(instanceEntries));
            }

            foreach (var entry in instanceEntries)
            {
                NetworkEntityGuid guid = GameObjectGuidFactory.Create(entry);

                if (Logger.IsInfoEnabled)
                {
                    Logger.Info($"Creating GameObject: {guid}");
                }

                EntityCreationRequester.PublishEvent(this, new EntityCreationRequestedEventArgs(guid));
            }
        }