<commit_before>/*
 * DestroyStructureTask.h
 *
 *  Created on: Jun 29, 2013
 *      Author: TheAnswer
 */

#ifndef DESTROYSTRUCTURETASK_H_
#define DESTROYSTRUCTURETASK_H_

#include "engine/engine.h"
#include "server/zone/objects/structure/StructureObject.h"
#include "server/zone/objects/cell/CellObject.h"

class DestroyStructureTask : public Task {
protected:
	ManagedReference<StructureObject*> structureObject;

public:
	DestroyStructureTask(StructureObject* structure) {
		structureObject = structure;
	}

	void run() {
		Locker locker(structureObject);

		ManagedReference<Zone*> zone = structureObject->getZone();

		if (zone == NULL)
			return;
<commit_msg>[fixed] loading issue<commit_after>/*
 * DestroyStructureTask.h
 *
 *  Created on: Jun 29, 2013
 *      Author: TheAnswer
 */

#ifndef DESTROYSTRUCTURETASK_H_
#define DESTROYSTRUCTURETASK_H_

#include "engine/engine.h"
#include "server/zone/objects/structure/StructureObject.h"
#include "server/zone/objects/cell/CellObject.h"

class DestroyStructureTask : public Task {
protected:
	ManagedReference<StructureObject*> structureObject;

public:
	DestroyStructureTask(StructureObject* structure) {
		structureObject = structure;
	}

	void run() {
		Locker locker(structureObject);

		ManagedReference<Zone*> zone = structureObject->getZone();

		if (zone == NULL)
			return;

		ZoneServer* zoneServer = structureObject->getZoneServer();

		if (zoneServer != NULL && zoneServer->isServerLoading()) {
			schedule(1000);

			return;
		}

{'fraction_non_alphanumeric': 0.11422845691382766, 'fraction_numerical': 0.01068804275217101, 'mean_word_length': 5.190082644628099, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2406717', 'n_tokens_mistral': 509, 'n_tokens_neox': 460, 'n_words': 95}