-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFlatDesc.cs
45 lines (39 loc) · 997 Bytes
/
FlatDesc.cs
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using LODGenerator.Common;
using System;
using System.Collections.Generic;
namespace LODGenerator
{
public struct FlatDesc
{
public string SourceTexture;
public float width;
public float height;
public float shiftZ;
public float scale;
public float effect1;
public string GlowTexture;
public List<Vector3> normals;
public List<Vector3> tangents;
public List<Vector3> bitangents;
}
static class FlatList
{
static Dictionary<string, FlatDesc> _list;
static FlatList()
{
_list = new Dictionary<string, FlatDesc>();
}
public static void Set(string key, FlatDesc value)
{
_list.Add(key, value);
}
public static FlatDesc Get(string key)
{
return _list[key];
}
public static bool Contains(string key)
{
return _list.ContainsKey(key);
}
}
}