summaryrefslogtreecommitdiff
path: root/project2/common/sourceObject.cpp
blob: ef909b97c1d9990b2a37f3e2a2e4bfd38bcb02d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <pch.hpp>
#include "sourceObject.h"

unsigned int SourceObject::loadOrder = 1;

SourceObject::SourceObject(ScriptNodePtr p) :
	name(p ? p->value("name", "anon").as<std::string>() : "anon"),
	order(loadOrder++)
{
	LoaderBase::loadedObjects.insert(this);
}

SourceObject::SourceObject(const std::string & n) :
	name(n),
	order(loadOrder++)
{
	LoaderBase::loadedObjects.insert(this);
}

SourceObject::~SourceObject()
{
	LoaderBase::loadedObjects.erase(this);
}

void
SourceObject::loadComplete(const CommonObjects *)
{
}