GameMapComponent.cs 464 B

1234567891011121314151617
  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. }
  16. }