Beispiel #1
0
        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);
        }
Beispiel #2
0
 internal void _OnDestroy()
 {
     this.ctx  = null;
     this.wrap = null;
 }
Beispiel #3
0
 internal void _SetContext(StraletContextImpl sc)
 {
     this.ctx = sc;
     //OnInit(sc);
 }
Beispiel #4
0
 public LogginAdpterImpl(StraletContextImpl context)
 {
     this.context = context;
 }