コード例 #1
0
        //public override void InvokeReal()
        //{
        //    if (avatarThinkerThread == null)
        //    {
        //        avatarThinkerThread = new Thread(Think) { Name = String.Format( };
        //        if (Actor.IsControllable)
        //        {
        //            ///  only think for ourselves
        //            avatarThinkerThread.Priority = ThreadPriority.Normal;
        //            avatarThinkerThread.Start();
        //        }
        //    }
        //    if (!avatarThinkerThread.IsAlive) avatarThinkerThread.Resume();
        //}

        public override void InvokeReal()
        {
            while (true)
            {
                try
                {
                    StartThinking();
                }
                catch (Exception e)
                {
                    ObservedActor.Debug(e.ToString());
                }
            }
        }
コード例 #2
0
 private void Debug(SimAvatar TheBot, string theBotDebug)
 {
     TheBot.Debug(theBotDebug);
     //Radegast.RadegastInstance C = TheBot.GetGridClient().TheRadegastInstance;
     //if (C != null)
     //{
     //    C.TabConsole.DisplayNotificationInChat(theBotDebug);
     //}
 }
コード例 #3
0
 private void Debug(SimAvatar TheBot,string theBotDebug)
 {
     TheBot.Debug(theBotDebug);
     //Radegast.RadegastInstance C = TheBot.GetGridClient().TheRadegastInstance;
     //if (C != null)
     //{
     //    C.TabConsole.DisplayNotificationInChat(theBotDebug);
     //}
 }