summaryrefslogtreecommitdiff
path: root/project2/common/sourceObject.cpp
blob: e66e9ee8f171d1e0eaff96893fd77d6074dd25cb (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
#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()
{
}

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