TDGageServiceClient.cs 1.47 KB
Newer Older
1
using FLY.Thick.Base.Common;
潘栩锋's avatar
潘栩锋 committed
2
using FLY.Thick.Base.IService;
潘栩锋's avatar
潘栩锋 committed
3
using FObjBase.Reflect;
4
using System;
潘栩锋's avatar
潘栩锋 committed
5 6
namespace FLY.Thick.Base.Client
{
7 8 9
    /// <summary>
    /// 
    /// </summary>
10
    public class TDGageServiceClient : FObjBase.Reflect.Reflect_SeviceClient, ITDGageService
潘栩锋's avatar
潘栩锋 committed
11
    {
12 13
        protected override Type InterfaceType => typeof(ITDGageService);

潘栩锋's avatar
潘栩锋 committed
14
        public DynArea DynArea { get; } = new DynArea();
15 16 17 18 19 20 21 22 23 24 25
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serverid"></param>
        public TDGageServiceClient(UInt32 serverid) : base(serverid) { }
        /// <summary>
        ///
        /// </summary>
        /// <param name="serviceId">服务id</param>
        /// <param name="connName">连接器</param>
        public TDGageServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
潘栩锋's avatar
潘栩锋 committed
26

27 28 29
        /// <summary>
        /// 
        /// </summary>
30
        public void StartP1()
潘栩锋's avatar
潘栩锋 committed
31
        {
32
            Call(nameof(StartP1));
潘栩锋's avatar
潘栩锋 committed
33
        }
34 35 36 37
        /// <summary>
        /// 
        /// </summary>
        /// <param name="mode"></param>
潘栩锋's avatar
潘栩锋 committed
38 39
        public void StartP2(STARTP2_MODE mode)
        {
40
            Call(nameof(StartP2), new { mode });
潘栩锋's avatar
潘栩锋 committed
41
        }
42 43 44 45 46
        /// <summary>
        /// 
        /// </summary>
        /// <param name="mode"></param>
        /// <param name="targetpos"></param>
47
        public void StartP2(STARTP2_MODE mode, int targetpos)
潘栩锋's avatar
潘栩锋 committed
48
        {
49
            Call(nameof(StartP2), new { mode, targetpos });
潘栩锋's avatar
潘栩锋 committed
50 51 52
        }
    }
}