예제 #1
0
파일: Place.cs 프로젝트: code-games/skumrim
    public virtual void DescribeInteractables()
    {
        if (this.hasInteractables)
        {
            IOController io = IOController.io;

            io.InlineLog("[");
            io.InlineLogAccent("Objects: ");

            foreach (InteractableObject item in interactables)
            {
                io.InlineLog(item.name + ", ");
            }

            io.TrimInlineBuffer(2);
            io.InlineLog("]");

            io.FlushInlineLog();
        }
    }
예제 #2
0
파일: Place.cs 프로젝트: code-games/skumrim
    public virtual void DescribeNPCs()
    {
        if (this.hasNPCs)
        {
            IOController io = IOController.io;

            io.InlineLog("[");
            io.InlineLogAccent("NPCs: ");

            foreach (NPC npc in npcs)
            {
                io.InlineLog(npc.name + ", ");
            }

            io.TrimInlineBuffer(2);
            io.InlineLog("]");

            io.FlushInlineLog();
        }
    }
예제 #3
0
파일: Place.cs 프로젝트: code-games/skumrim
    public virtual void DescribeExits()
    {
        if (this.hasObviousExits)
        {
            IOController io = IOController.io;

            io.InlineLog("[");
            io.InlineLogAccent("Exits: ");

            if (north)
            {
                io.InlineLog("north, ");
            }
            if (east)
            {
                io.InlineLog("east, ");
            }
            if (south)
            {
                io.InlineLog("south, ");
            }
            if (west)
            {
                io.InlineLog("west, ");
            }

            if (exits.Length > 0)
            {
                foreach (Place exit in exits)
                {
                    io.InlineLog(exit.name + ", ");
                }
            }

            io.TrimInlineBuffer(2);

            io.InlineLog("]");

            io.FlushInlineLog();
        }
    }