Example #1
0
        private void HandleUtilityAiDebugMessage(SharedAiDebug.UtilityAiDebugMessage message)
        {
            if ((_tooltips & AiDebugMode.Thonk) != 0)
            {
                // I guess if it's out of range we don't know about it?
                var entityManager = IoCManager.Resolve <IEntityManager>();
                var entity        = entityManager.GetEntity(message.EntityUid);
                TryCreatePanel(entity);

                // Probably shouldn't access by index but it's a debugging tool so eh
                var label = (Label)_aiBoxes[entity].GetChild(0).GetChild(0);
                label.Text = $"Current Task: {message.FoundTask}\n" +
                             $"Task score: {message.ActionScore}\n" +
                             $"Planning time (ms): {message.PlanningTime * 1000:0.0000}\n" +
                             $"Considered {message.ConsideredTaskCount} tasks";
            }
        }
Example #2
0
 private void NotifyActionJob(SharedAiDebug.UtilityAiDebugMessage message)
 {
     EntityManager.EntityNetManager.SendSystemNetworkMessage(message);
 }
Example #3
0
 private void NotifyActionJob(SharedAiDebug.UtilityAiDebugMessage message)
 {
     RaiseNetworkEvent(message);
 }