예제 #1
0
        public string CharacterAttack(int id)
        {
            XMLFileReader reader = new XMLFileReader(filePath);

            if (id == 0)
            {
                return("0");
            }
            return(reader.Reader(id, "attack"));
        }
예제 #2
0
        public string CharacterMsg(int id)
        {
            XMLFileReader XFR = new XMLFileReader(filePath);

            return(XFR.Reader(id, "message"));
        }
예제 #3
0
        public string CharacterRank(int id)
        {
            XMLFileReader XMLFileReader = new XMLFileReader(filePath);

            return(XMLFileReader.Reader(id, "rank"));
        }
예제 #4
0
        public int NumOfCharacter()
        {
            XMLFileReader XFR = new XMLFileReader(filePath);

            return(XFR.sum("armory", "gun") + 1);
        }
예제 #5
0
        public string CharacterName(int id)
        {
            XMLFileReader XFR = new XMLFileReader(filePath);

            return(XFR.Reader(id, "name"));
        }