forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZoneManager.cs
More file actions
50 lines (42 loc) · 1.24 KB
/
Copy pathZoneManager.cs
File metadata and controls
50 lines (42 loc) · 1.24 KB
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
46
47
48
49
50
using System;
using L2dotNET.World;
using NLog;
namespace L2dotNET.Managers
{
public class ZoneManager
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
private static volatile ZoneManager _instance;
private static readonly object SyncRoot = new object();
public void Initialize()
{
L2WorldRegion[,] worldRegions = L2World.GetWorldRegions();
try
{
//XmlDocument doc = new XmlDocument();
//int fileCounter = 0;
//string[] xmlFilesArray = Directory.GetFiles(@"data\xml\zones\");
//for (int i = 0; i < xmlFilesArray.Length; i++) { }
}
catch (Exception e)
{
Log.Error($"ZoneManager: {e.Message}");
}
//int size = 0;
}
public static ZoneManager Instance
{
get
{
if (_instance != null)
return _instance;
lock (SyncRoot)
{
if (_instance == null)
_instance = new ZoneManager();
}
return _instance;
}
}
}
}