blob: 1578198a69fb6d6994fe8145bb25d9357218b232 (
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;
unsigned 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;
};
|