Room.cs 721 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. /// <summary>
  5. /// 玩家房间实体
  6. /// </summary>
  7. [ChildOf(typeof(GameRoomComponent))]
  8. public class Room : Entity, IAwake<Player>, IDestroy
  9. {
  10. /** 房间号 **/
  11. public string RoomId { get; set; }
  12. /** 房间玩家集合 **/
  13. public List<Player> Players { get; set; }
  14. /** 房间玩法类型 1:黄冈晃晃 **/
  15. public int Type { get; set; }
  16. /** 房主playerId **/
  17. public long OwnerId { get; set; }
  18. /** 房间状态 [0等待 1已开始 2已结束] **/
  19. public int State { get; set; }
  20. /** 创建时间 **/
  21. public long CreateTime { get; set; }
  22. }
  23. }