Room.cs 779 B

1234567891011121314151617181920212223242526
  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 int RoomId { get; set; }
  12. /** 房间最大人数 **/
  13. public int MaxNum { get; set; }
  14. /** 房间玩家集合 **/
  15. public Dictionary<long, Player> Players = new ();
  16. /** 房间玩法类型 1:黄冈晃晃 **/
  17. public int Type { get; set; }
  18. /** 房主playerId **/
  19. public long OwnerId { get; set; }
  20. /** 房间最大局数 **/
  21. public int MaxRound { get; set; }
  22. /** 创建时间 **/
  23. public long CreateTime { get; set; }
  24. }
  25. }