Пример #1
0
        public void SetData <T>(string dataName, T data)
        {
            if (dataName == null)
            {
                return;
            }

            BTDebug.Info("BTDatabase: {0} = {1}", dataName, data);
            dataDic[dataName] = new WeakReference <object>(data);
        }
Пример #2
0
        protected override BTResult OnTick(BTContext context)
        {
            string text = Message ?? "";

            switch (level)
            {
            case BTLogLevel.Info:
                BTDebug.Info(text);
                break;

            case BTLogLevel.Warning:
                BTDebug.Warning(text);
                break;

            case BTLogLevel.Error:
                BTDebug.Error(text);
                break;
            }

            return(BTResult.Success.Create(Message == null? "消息为空" : null));
        }