Exemplo n.º 1
0
    /// <summary>
    /// For a ffield farm
    /// </summary>
    private void ConformInBuildRouteField()
    {
        //if (PersonPot.Control.RoutesCache1.ContainANewerOrSameRoute(_person.Work.MyId + ".O", _person.Work.MyId + ".D",
        //        new DateTime()))
        //{
        //    Router1.TheRoute = PersonPot.Control.RoutesCache1.GiveMeTheNewerRoute();
        //    Router1.IsRouteReady = true;
        //    return;
        //}

        List <Vector3> inBuildPoints = new List <Vector3>()
        {
            _person.Work.BehindMainDoorPoint, FinRoutePoint
        };

        var TheRoute = ReachBean.RouteVector3s(inBuildPoints);

        //the .O is to pass the profession or brain reurn
        TheRoute.OriginKey  = _person.Work.MyId + ".O";
        TheRoute.DestinyKey = _person.Work.MyId + ".D";

        Router1.TheRoute     = TheRoute;
        Router1.IsRouteReady = true;

        //PersonPot.Control.RoutesCache1.AddReplaceRoute(TheRoute);
    }
Exemplo n.º 2
0
    /// <summary>
    /// For an animal farm
    /// </summary>
    private TheRoute ConformInBuildRouteAnimal(List <Vector3> points)
    {
        var TheRoute = ReachBean.RouteVector3s(points);

        //the .O is to pass the profession or brain reurn
        TheRoute.OriginKey  = _building.MyId + ".O";
        TheRoute.DestinyKey = _building.MyId + ".D";

        return(TheRoute);
    }
Exemplo n.º 3
0
Arquivo: Farmer.cs Projeto: Cdrix/SM
    /// <summary>
    /// For an animal farm
    /// </summary>
    void ConformInBuildRouteAnimal()
    {
        if (PersonPot.Control.RoutesCache1.ContainANewerOrSameRoute(_person.Work.MyId + ".O", _person.Work.MyId + ".D",
                                                                    new DateTime()))
        {
            Router1.TheRoute     = PersonPot.Control.RoutesCache1.GiveMeTheNewerRoute();
            Router1.IsRouteReady = true;
            return;
        }

        var inBuildPoints = DefineInBuildPoint();
        var TheRoute      = ReachBean.RouteVector3s(inBuildPoints);

        //the .O is to pass the profession or brain reurn
        TheRoute.OriginKey  = _person.Work.MyId + ".O";
        TheRoute.DestinyKey = _person.Work.MyId + ".D";

        Router1.TheRoute     = TheRoute;
        Router1.IsRouteReady = true;

        PersonPot.Control.RoutesCache1.AddReplaceRoute(TheRoute);
    }
Exemplo n.º 4
0
    private void ConformInBuildRoute()
    {
        Router1 = new CryRouteManager();

        if (PersonPot.Control.RoutesCache1.ContainANewerOrSameRoute(_person.Work.MyId + ".O", _person.Work.MyId + ".D",
                                                                    new DateTime()))
        {
            Router1.TheRoute     = PersonPot.Control.RoutesCache1.GiveMeTheNewerRoute();
            Router1.IsRouteReady = true;
            return;
        }

        var inBuildPoints = DefineInBuildPoint();
        //UVisHelp.CreateHelpers(inBuildPoints, Root.yellowCube);
        var TheRoute = ReachBean.RouteVector3s(inBuildPoints);

        //so they go trhu on Profession
        TheRoute.OriginKey  = _person.Work.MyId + ".O";
        TheRoute.DestinyKey = _person.Work.MyId + ".D";

        Router1.TheRoute     = TheRoute;
        Router1.IsRouteReady = true;
    }