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

View File

@@ -11,8 +11,7 @@ namespace Subsurface.Networking
DropItem = 3,
InventoryUpdate = 4,
PickItem = 5,
UpdateProperty = 6,
NotMoving = 7
UpdateProperty = 6
}
class NetworkEvent
@@ -46,6 +45,11 @@ namespace Subsurface.Networking
get { return isImportant[(int)eventType]; }
}
public NetworkEventType Type
{
get { return eventType; }
}
public NetworkEvent(int id, bool isClient)
: this(NetworkEventType.UpdateEntity, id, isClient)
{
@@ -64,9 +68,9 @@ namespace Subsurface.Networking
eventType = type;
foreach (NetworkEvent e in events)
if (!isImportant[(int)type])
{
if (!isImportant[(int)type] && e.id == id && e.eventType == type) return;
if (events.Find(e => e.id == id && e.eventType == type) != null) return;
}
this.id = id;