Esempio n. 1
0
        /// <summary>
        /// Fetches data about notes in the inventory for visually representing
        /// notes on hand in things like the inventory screen.
        /// </summary>
        /// <returns>An array of note data</returns>
        public FPENoteData[] getNoteData()
        {
            FPENoteData[] data = new FPENoteData[notes.Count];

            for (int i = 0; i < notes.Count; i++)
            {
                data[i] = new FPENoteData(notes[i].NoteTitle, notes[i].NoteBody);
            }

            return(data);
        }
        /// <summary>
        /// Fetches data about notes in the inventory for visually representing
        /// notes on hand in things like the inventory screen.
        /// </summary>
        /// <returns>An array of note data</returns>
        public FPENoteData[] getNoteData()
        {
            FPENoteData[] data = new FPENoteData[notes.Count];

            // Sort by title
            //notes.Sort((p, q) => p.NoteTitle.CompareTo(q.NoteTitle));

            for (int i = 0; i < notes.Count; i++)
            {
                data[i] = new FPENoteData(notes[i].NoteTitle, notes[i].NoteBody);
            }

            return(data);
        }