Example #1
0
        public async Task RefreshMapCompletely(string uid, string filemapname)
        {
            MapList.TryGetValue(uid, out var map);
            if (map == null)
            {
                map = new CMap()
                {
                    UId      = uid,
                    FileName = filemapname
                }
            }
            ;

            var hashtable = (await Manager.AsyncSendCall(GbxParam.Create("GetMapInfo", map.FileName)))
                            .Parameters[0]
                            .TypeCast <Dictionary <string, object> >();

            map.Convert(hashtable);
            map.LoadingState = HalfClass.CurrentState.AllInfoFilled;

            CManiaNextControl.Events.OnGettingMapInformation_Invoke(this, map);
        }