コード例 #1
0
ファイル: StellarData.cs プロジェクト: 77topaz/travellermap
            public static bool Parse(SeekableReader r, out NearCompanion near)
            {
                Unit u;

                if (Unit.Parse(r, out u))
                {
                    near           = new NearCompanion();
                    near.Companion = u;
                    return(true);
                }

                near = null;
                return(false);
            }
コード例 #2
0
ファイル: StellarData.cs プロジェクト: cmcknight/travellermap
            public static bool Parse(SeekableReader r, out NearCompanion?near)
            {
                if (Unit.Parse(r, out Unit? u))
                {
                    near = new NearCompanion()
                    {
                        Companion = u
                    };
                    return(true);
                }

                near = null;
                return(false);
            }
コード例 #3
0
ファイル: StellarData.cs プロジェクト: tuita520/travellermap
            public static bool Parse(SeekableReader r, out Companion companion)
            {
                if (NearCompanion.Parse(r, out NearCompanion nc))
                {
                    companion = nc;
                    return(true);
                }
#if EXTENDED_SYSTEM_PARSING
                if (FarCompanion.Parse(r, out FarCompanion fc))
                {
                    companion = fc;
                    return(true);
                }
#endif
                companion = null;
                return(false);
            }
コード例 #4
0
            public static bool Parse(TextReader r, out Companion companion)
            {
                NearCompanion nc;

                if (NearCompanion.Parse(r, out nc))
                {
                    companion = nc;
                    return(true);
                }
#if EXTENDED_SYSTEM_PARSING
                FarCompanion fc;
                if (FarCompanion.Parse(r, out fc))
                {
                    companion = fc;
                    return(true);
                }
#endif
                companion = null;
                return(false);
            }
コード例 #5
0
ファイル: StellarData.cs プロジェクト: Matt--/travellermap
            public static bool Parse(TextReader r, out NearCompanion near)
            {
                Unit u;
                if (Unit.Parse(r, out u))
                {
                    near = new NearCompanion();
                    near.Companion = u;
                    return true;
                }

                near = null;
                return false;
            }