GameRoomComponent.cs 353 B

12345678910111213
  1. using System.Collections.Generic;
  2. namespace ET.Server;
  3. /// <summary>
  4. /// 玩家房间管理组件
  5. /// </summary>
  6. [ComponentOf(typeof(Scene))]
  7. public class GameRoomComponent : Entity, IAwake, IDestroy
  8. {
  9. /** 房间集合 [key:房间号, value:房间实例] **/
  10. public readonly Dictionary<string, Room> idRooms = new Dictionary<string, Room>();
  11. }