feat: reworked room with new serializer, reduce header of packet, added snapshot, added player join, left, ownership changed events events, added dispatch of states
fixed: missed authority bug
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
namespace Ragon.Common
|
||||
{
|
||||
public enum RagonOperation: ushort
|
||||
public enum RagonOperation: byte
|
||||
{
|
||||
AUTHORIZE,
|
||||
AUTHORIZED_SUCCESS,
|
||||
AUTHORIZED_FAILED,
|
||||
|
||||
JOIN_OR_CREATE_ROOM,
|
||||
JOIN_ROOM,
|
||||
LEAVE_ROOM,
|
||||
OWNERSHIP_CHANGED,
|
||||
JOIN_SUCCESS,
|
||||
JOIN_FAILED,
|
||||
|
||||
LOAD_SCENE,
|
||||
SCENE_IS_LOADED,
|
||||
@@ -18,9 +22,7 @@ namespace Ragon.Common
|
||||
CREATE_ENTITY,
|
||||
DESTROY_ENTITY,
|
||||
|
||||
RESTORE_BEGIN,
|
||||
RESTORE_END,
|
||||
RESTORED,
|
||||
SNAPSHOT,
|
||||
|
||||
REPLICATE_ENTITY_STATE,
|
||||
REPLICATE_ENTITY_EVENT,
|
||||
|
||||
Reference in New Issue
Block a user