/****************************************************************************
* Copyright 2019 Nreal Techonology Limited. All rights reserved.
*
* This file is part of NRSDK.
*
* https://www.nreal.ai/
*
*****************************************************************************/
namespace NRKernal.Experimental.NetWork
{
using System;
/// Net msg type.
public enum MessageType
{
/// Empty type.
None = 0,
/// Connect server.
Connected = 1,
/// Disconnect from server.
Disconnect = 2,
/// Heart beat.
HeartBeat = 3,
/// Enter room.
EnterRoom = 4,
/// Enter room.
ExitRoom = 5,
/// An enum constant representing the update camera Parameter option.
UpdateCameraParam = 6,
/// Used to synchronization message with the server.
MessageSynchronization = 7,
}
/// (Serializable) an enter room data.
[Serializable]
public class EnterRoomData
{
/// Enter room result.
public bool result;
}
/// (Serializable) an exit room data.
[Serializable]
public class ExitRoomData
{
/// Exit room result.
public bool Suc;
}
/// (Serializable) a camera parameter.
[Serializable]
public class CameraParam
{
/// Camera fov.
public Fov4f fov;
}
}