Compare commits

..

2 Commits

Author SHA1 Message Date
edmand46 8705e93929 🐛 event size 2023-08-02 22:13:51 +03:00
edmand46 08e931d1bd 🚑 remove static entity spawn 2023-08-01 22:21:21 +03:00
2 changed files with 2 additions and 4 deletions
@@ -110,8 +110,6 @@ internal class SnapshotHandler : Handler
var hasAuthority = _playerCache.Local.Id == player.Id;
var entity = _entityCache.TryGetEntity(0, entityType, staticId, entityId, hasAuthority, out _);
_entityListener.OnEntityCreated(entity);
entity.Read(buffer);
entity.Attach(_client, entityId, entityType, hasAuthority, player);
@@ -120,7 +118,6 @@ internal class SnapshotHandler : Handler
if (_client.Status == RagonStatus.LOBBY)
{
_client.SetStatus(RagonStatus.ROOM);
_listenerList.OnJoined();
}
+2 -1
View File
@@ -39,7 +39,8 @@ public class RagonEvent
public void Read(RagonBuffer buffer)
{
buffer.ReadArray(_data, buffer.Capacity);
_size = buffer.Capacity;
buffer.ReadArray(_data, _size);
}
public void Write(RagonBuffer buffer)