aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.h
blob: 735ac1f00427aab8e64513b7ef27be992851f32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "Object.h"
#include "Range.h"

// database object table row
struct UniversalObject {
	String name;
	String description;
	String type;
	Range<int> value;
	int protection;
};

class ObjectFactory {
public:
	static Object * create_object(const UniversalObject & universal);
	static Object * create_object(const String & name = "", const String & description = "");

private:
	ObjectFactory() = delete;
};