1234567891011121314151617181920 |
- using System.Collections.Generic;
- namespace ET.Server
- {
- /// <summary>
- /// 游戏服玩家场景组件
- /// </summary>
- [ComponentOf(typeof(Scene))]
- public class GameMapComponent: Entity, IAwake, IDestroy
- {
- [StaticField]
- public static GameMapComponent Instance;
- /** 场景集合 key:instanceId, value:map **/
- [StaticField]
- public Dictionary<long, Map> allMaps = new Dictionary<long, Map>();
- /** room集合 key:roomId, value:instanceId **/
- [StaticField]
- public Dictionary<long, long> rooms = new Dictionary<long, long>();
- }
- }
|