示例#1
0
文件: Stralet.cs 项目: ongbe/tqapi
        public StraletWrap(Stralet stralet)
        {
            wrap.SetContext = (sc) =>
            {
                ctx = new StraletContextImpl(sc);
                stralet._SetContext(ctx);
            };

            wrap.OnDestroy = () =>
            {
                this.handle = IntPtr.Zero;
                stralet._OnDestroy();
            };

            wrap.OnEvent = (evt, data) =>
            {
                stralet._OnEvent(evt, data);
            };

            handle = TqsDll.tqs_stralet_create(ref wrap);
        }
示例#2
0
文件: Stralet.cs 项目: ongbe/tqapi
 internal void _OnDestroy()
 {
     this.ctx  = null;
     this.wrap = null;
 }
示例#3
0
文件: Stralet.cs 项目: ongbe/tqapi
 internal void _SetContext(StraletContextImpl sc)
 {
     this.ctx = sc;
     //OnInit(sc);
 }
示例#4
0
文件: Stralet.cs 项目: ongbe/tqapi
 public LogginAdpterImpl(StraletContextImpl context)
 {
     this.context = context;
 }