ET框架--AllotMapComponent学习笔记

AllotMapComponent

请大家关注我的微博:@NormanLin_BadPixel坏像素


/// <summary>
/// 分配房间服务器组件,逻辑在AllotMapComponentSystem扩展
/// </summary>
public class AllotMapComponent : Component
{
    public readonly List<StartConfig> MapAddress = new List<StartConfig>();
}

如作者注释的,我们去AllotMapComponentSystem看看。

我们发现,里面的逻辑跟RealmGateAddressComponent差不多。。。不过RealmGateAddressComponent储存的是AppType.Gate的启动配置,而AllotMapComponentSystem储存的是AppType.Map的启动配置。这也是我们之前在讲StartConfigComponent时候说的,MapConfigsGateConfigs的储存类型是List,是有多个的,所以我们要有特别的组件来管理分配。

RealmGateAddressComponent学习笔记

猜你喜欢

转载自blog.csdn.net/norman_lin/article/details/79966469