예제 #1
0
        /// <summary>
        /// Возвращает данные о базе игрока
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        public async Task <wcfservice.BaseEntity> RetrieveBaseData(wcfservice.BaseAction msg)
        {
            var client = new Service1Client();
            var result = await client.GetBaseInfoAsync(msg);

            client.Close();
            return(result);
        }
예제 #2
0
        /// <summary>
        /// Выполняет действия игрока с базой
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        public async Task <string> Action(wcfservice.BaseAction msg)
        {
            var client = new Service1Client();
            var result = await client.BaseActionAsync(msg);

            client.Close();
            return(result);
        }
예제 #3
0
        /// <summary>
        /// Возвращает данные о юнитах на базе
        /// </summary>
        /// <returns></returns>
        public async Task <IEnumerable <wcfservice.UnitsData> > GetBaseUnitsList(wcfservice.BaseAction q)
        {
            var client   = new Service1Client();
            var entities = await client.GetBaseUnitsListAsync(q);

            client.Close();
            return(entities);
        }
예제 #4
0
 public System.Threading.Tasks.Task <wcfservice.BaseEntity> GetBaseInfoAsync(wcfservice.BaseAction msg)
 {
     return(base.Channel.GetBaseInfoAsync(msg));
 }
예제 #5
0
 public System.Threading.Tasks.Task <wcfservice.UnitsData[]> GetBaseUnitsListAsync(wcfservice.BaseAction obj)
 {
     return(base.Channel.GetBaseUnitsListAsync(obj));
 }
예제 #6
0
 public wcfservice.BaseEntity GetBaseInfo(wcfservice.BaseAction msg)
 {
     return(base.Channel.GetBaseInfo(msg));
 }
예제 #7
0
 public wcfservice.UnitsData[] GetBaseUnitsList(wcfservice.BaseAction obj)
 {
     return(base.Channel.GetBaseUnitsList(obj));
 }
예제 #8
0
 public System.Threading.Tasks.Task <wcfservice.StructureEntity[]> GetBaseStructuresAsync(wcfservice.BaseAction msg)
 {
     return(base.Channel.GetBaseStructuresAsync(msg));
 }
예제 #9
0
 public wcfservice.StructureEntity[] GetBaseStructures(wcfservice.BaseAction msg)
 {
     return(base.Channel.GetBaseStructures(msg));
 }
예제 #10
0
 public System.Threading.Tasks.Task <string> BaseActionAsync(wcfservice.BaseAction msg)
 {
     return(base.Channel.BaseActionAsync(msg));
 }
예제 #11
0
 public string BaseAction(wcfservice.BaseAction msg)
 {
     return(base.Channel.BaseAction(msg));
 }