-
Notifications
You must be signed in to change notification settings - Fork 0
/
DimPlayer.cs
39 lines (34 loc) · 950 Bytes
/
DimPlayer.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
namespace Dimlibs
{
public class DimPlayer : ModPlayer
{
internal static List<string> dimList = new List<string>();
private string currentDimension = "overworld";
public string getCurrentDimension()
{
return currentDimension;
}
internal void setCurrentDimension(String currentDimension)
{
this.currentDimension = currentDimension;
}
public override TagCompound Save()
{
TagCompound tag = new TagCompound();
tag.Add("dimension", currentDimension);
return tag;
}
public override void Load(TagCompound tag)
{
currentDimension = tag.GetString("dimension");
}
}
}