123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ShadowStudio.Model
- {
- /// <summary>
- /// 房间权限
- /// </summary>
- public enum RoomPermissions
- {
- /// <summary>
- /// 私人房间,仅个人可看
- /// </summary>
- Private = 0,
- /// <summary>
- /// 公共可读
- /// </summary>
- OnlyRead = 1,
- /// <summary>
- /// 公共可写
- /// </summary>
- Writable = 2
- }
- /// <summary>
- /// Room Infos
- /// 房间信息,数据结构
- /// </summary>
- public class RoomInfo
- {
- /// <summary>
- /// 房间id
- /// </summary>
- private string roomId;
- /// <summary>
- /// 房间号
- /// </summary>
- private string roomNum;
- /// <summary>
- /// 房间名称
- /// </summary>
- private string roomName;
- /// <summary>
- /// 访问权限
- /// </summary>
- private RoomPermissions permissions;
- /// <summary>
- /// 房间密码
- /// </summary>
- private string password;
- /// <summary>
- /// 房间活跃度
- /// </summary>
- private string activity;
- /// <summary>
- /// 房间拥有者
- /// </summary>
- private string ownerId;
- /// <summary>
- /// 物品的集合体,因为数据量可能很大,不在此使用完整的结构体引用
- /// </summary>
- private List<string> goodsList;
- public string RoomId { get => roomId; set => roomId = value; }
- public string RoomNum { get => roomNum; set => roomNum = value; }
- public string RoomName { get => roomName; set => roomName = value; }
- public RoomPermissions Permissions { get => permissions; set => permissions = value; }
- public string Password { get => password; set => password = value; }
- public string Activity { get => activity; set => activity = value; }
- public string OwnerId { get => ownerId; set => ownerId = value; }
- public List<string> GoodsList { get => goodsList; set => goodsList = value; }
- }
- }
|