Progress on tutorial, gap tweaking (water flows faster from room to room), UPnP error messages, input keys in array, underwater aiming tweaking, tons of misc stuff commit more often ffs

This commit is contained in:
Regalis
2015-08-31 19:57:49 +03:00
parent 1e990784b2
commit f739808520
150 changed files with 15933 additions and 588 deletions
+17 -3
View File
@@ -5,6 +5,8 @@ namespace Subsurface.Particles
{
class ParticlePrefab
{
public enum DrawTargetType { Air = 1, Water = 2, Both = 3 }
public readonly string name;
public readonly Sprite sprite;
@@ -27,7 +29,7 @@ namespace Subsurface.Particles
public readonly Vector2 velocityChange;
public readonly bool inWater;
public readonly DrawTargetType DrawTarget;
public readonly bool rotateToDirection;
@@ -67,8 +69,20 @@ namespace Subsurface.Particles
rotateToDirection = ToolBox.GetAttributeBool(element, "rotatetodirection", false);
inWater = ToolBox.GetAttributeBool(element, "inwater", false);
switch (ToolBox.GetAttributeString(element, "drawtarget", "air").ToLower())
{
case "air":
default:
DrawTarget = DrawTargetType.Air;
break;
case "water":
DrawTarget = DrawTargetType.Water;
break;
case "both":
DrawTarget = DrawTargetType.Both;
break;
}
}
}
}