-
Notifications
You must be signed in to change notification settings - Fork 1
/
PoMWorld.cs
64 lines (57 loc) · 1.71 KB
/
PoMWorld.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using Terraria.ID;
//using Microsoft.Xna.Framework;
//using Terraria;
//using Terraria.ModLoader;
//using PathOfModifiers.Affixes.Items;
//using Terraria.ModLoader.IO;
//using Terraria.Utilities;
//using System.IO;
//using Microsoft.Xna.Framework.Graphics;
//using PathOfModifiers.Maps;
//using PathOfModifiers.Tiles;
//namespace PathOfModifiers
//{
// public class PoMWorld : ModWorld
// {
// public Map[] openMaps;
// //TODO: read maxOpenMaps from config
// //TODO: receive maxOpenMaps from server
// public int maxOpenMaps = 255;
// public override void Initialize()
// {
// openMaps = new Map[maxOpenMaps];
// }
// public int AddOpenMap(Map map, int ID = -1, bool overwrite = false)
// {
// if (ID > -1)
// {
// if (!overwrite && openMaps[ID] != null)
// throw new Exception("Cannot add open map to the world by ID because the ID is already taken.");
// openMaps[ID] = map;
// return ID;
// }
// for (int i = 0; i < maxOpenMaps; i++)
// {
// if (openMaps[i] == null)
// {
// openMaps[i] = map;
// return i;
// }
// }
// return -1;
// }
// public void RemoveOpenMap(int ID)
// {
// openMaps[ID] = null;
// }
// public override void Initialize()
// {
// var mapBorder = ModContent.GetInstance<MapBorder>();
// MapBorder.ClearActiveBounds();
// }
// }
//}