Exemple #1
0
    // MARK: - Lifecycle

    public AW2DPassage(AW2DPassageID id, AW2DEnvironmentID envA, AW2DEnvironmentID envB, AW2DAction passageAction = null)
    {
        this.id            = id;
        this.envA          = envA;
        this.envB          = envB;
        this.passageAction = passageAction;
    }
Exemple #2
0
    // MARK: - Actions

    AW2DEnvironmentID getDestinationEnvironmentFrom(AW2DEnvironmentID environment)
    {
        if (environment == envB)
        {
            return(envA);
        }
        return(envB);
    }
Exemple #3
0
    // MARK: - Lifecycle

    public AW2DEnvironment(AW2DEnvironmentID id, string name)
    {
        this.id       = id;
        this.name     = name;
        this.passages = new List <AW2DPassage>();
    }