Example #1
0
        public bool TryGet <T, U, K>(out T t, out U u, out K k)
        {
            LBEventThreeArg <T, U, K> arg = this as LBEventThreeArg <T, U, K>;

            arg.Get(out t, out u, out k);
            return(true);
        }
Example #2
0
        public void SendEvent <T, U, K>(int eventId, T arg1, U arg2, K arg3)
        {
            //临时闯将将来可以换成对象池
            LBEventThreeArg <T, U, K> eventArg = new LBEventThreeArg <T, U, K>();

            eventArg.Set(arg1, arg2, arg3);
            TiggerEvent(eventId, eventArg);
            //如果用对象池,在这里就可以回收
        }