Example #1
0
        private static INPC AnimateOneWalkFrame(INPC npc)
        {
            var nextFrameNPC = npc.WithNextWalkFrame();

            if (nextFrameNPC.IsActing(NPCActionState.Standing))
            {
                nextFrameNPC = nextFrameNPC
                               .WithX((byte)nextFrameNPC.GetDestinationX())
                               .WithY((byte)nextFrameNPC.GetDestinationY());
            }

            return(nextFrameNPC);
        }