Giving crew members an ID card with clearances based on spawnpoint, level collision bugfixes, level exit/enter "shafts", moar entity ID bugfixes

This commit is contained in:
Regalis
2015-07-09 20:33:53 +03:00
parent 2254585dac
commit 257835e609
25 changed files with 279 additions and 204 deletions
@@ -56,8 +56,7 @@ namespace Subsurface.Items.Components
float scale = 0.01f;
List<Vector2[]> edges = Level.Loaded.GetCellEdges(-Level.Loaded.Position, 5);
Vector2 offset = Vector2.Zero; //Level.Loaded.position;
//offset.Y = -offset.Y;
Vector2 offset = Vector2.Zero;
for (int i = 0; i < edges.Count; i++)
{
+10
View File
@@ -144,6 +144,11 @@ namespace Subsurface
get { return prefab.IsLinkable; }
}
public override string ToString()
{
return Name +"("+ID+")";
}
public List<IPropertyObject> AllPropertyObjects
{
get
@@ -322,6 +327,11 @@ namespace Subsurface
return CurrentHull;
}
public void AddTag(string tag)
{
if (tags.Contains(tag)) return;
tags.Add(tag);
}
public bool HasTag(string tag)
{