コード例 #1
0
    private static bool AskForMapGridDeep(int SceneID,
                                          MapGrid m,
                                          int StaionsDeep,
                                          LifeMCamp Camp,
                                          ref Int2 Pos,
                                          ref int Deep,
                                          ref int ret,
                                          ref MapGrid n)
    {
        ret = 0;
        if (m == null)
        {
            ret = 2;
            return(false);
        }

        int d = m.AskForStaionsDeep(StaionsDeep, Camp, ref ret);

        if (d != -1)
        {
            Deep = d;
            Pos  = m.GetStationsPos();
            return(true);
        }
        if (m.PropStations == StationsProp.ATTACK && m.GetGridCamp(Camp) && n == null)
        {
            n = m;
        }
        return(false);
    }