// 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; }
// MARK: - Actions AW2DEnvironmentID getDestinationEnvironmentFrom(AW2DEnvironmentID environment) { if (environment == envB) { return(envA); } return(envB); }
// MARK: - Lifecycle public AW2DEnvironment(AW2DEnvironmentID id, string name) { this.id = id; this.name = name; this.passages = new List <AW2DPassage>(); }