GameMapComponent.cs 618 B

1234567891011121314151617181920
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. /// <summary>
  5. /// 游戏服玩家场景组件
  6. /// </summary>
  7. [ComponentOf(typeof(Scene))]
  8. public class GameMapComponent: Entity, IAwake, IDestroy
  9. {
  10. [StaticField]
  11. public static GameMapComponent Instance;
  12. /** 场景集合 key:instanceId, value:map **/
  13. [StaticField]
  14. public Dictionary<long, Map> allMaps = new Dictionary<long, Map>();
  15. /** room集合 key:roomId, value:instanceId **/
  16. [StaticField]
  17. public Dictionary<long, long> rooms = new Dictionary<long, long>();
  18. }
  19. }