예제 #1
0
        public void DrawPawnGUIOverlay()
        {
            if (!actor.Spawned || actor.Map.fogGrid.IsFogged(actor.Position))
            {
                return;
            }

            var pawn = Converter.ActorToPawn(actor);

            GenMapUI.DrawPawnLabel(pawn, GenMapUI.LabelDrawPosFor(pawn, -0.6f), 1f, 9999f, null, GameFont.Tiny, true, true);

            actor.Map.overlayDrawer.DrawOverlay(actor, OverlayTypes.QuestionMark);
        }
        private ActorPath GenerateNewPath()
        {
            lastPathedTargetPosition = destination.Cell;
            var pawnPath = actor.Map.pathFinder.FindPath(actor.Position, destination, Converter.ActorToPawn(actor), peMode);

            return(Converter.PawnPathToActorPath(pawnPath));
        }