コード例 #1
0
ファイル: FellowshipManager.cs プロジェクト: TwE7k/Pegasus
        /// <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
ファイル: Fellowship.cs プロジェクト: tervus/Pegasus
 public Fellowship(FellowshipObject info)
 {
     Info = info;
 }