示例#1
0
        /// <summary>
        /// Return <see cref="Fellowship"/> with supplied name, if fellowship doesn't exist it will be created.
        /// </summary>
        public static Fellowship GetFellowship(FellowshipObject fellowshipInfo)
        {
            if (!fellowships.TryGetValue(fellowshipInfo, out Fellowship fellowship))
            {
                fellowship = new Fellowship(fellowshipInfo);
                fellowships.Add(fellowshipInfo, fellowship);
            }

            return(fellowship);
        }
示例#2
0
 public Fellowship(FellowshipObject info)
 {
     Info = info;
 }