示例#1
0
        static void CSheet(Assistant a, string handle)
        {
            var c = a.GetCharacter(handle);

            if (c != null)
            {
                WriteLine(c);
            }
            else
            {
                WriteLine("Character not found.");
            }
        }
示例#2
0
        static void SaveCharacter(Assistant a, string handle)
        {
            var c = a.GetCharacter(handle);

            if (c != null)
            {
                a.SaveCharacter((Character)c);
            }
            else
            {
                WriteLine("Character not found.");
            }
        }
示例#3
0
        static void CSheet(Assistant a)
        {
            string handle = Utilities.GetString("Enter the character's handle: ");
            var    c      = a.GetCharacter(handle);

            if (c != null)
            {
                WriteLine(c);
            }
            else
            {
                WriteLine("Character not found.");
            }
        }