Exemplo n.º 1
0
        public override void CreateDungeonBranchConnections(IEnumerable <IDungeonBranch> branches)
        {
            base.CreateDungeonBranchConnections(branches);

            IDungeonBranch debugBranch = branches.Where(b => b is DebugDungeonBranch).FirstOrDefault();

            if (debugBranch != null)
            {
                DungeonBranchConnection connection = new DungeonBranchConnection(
                    debugBranch,
                    Map.Staircase.StaircaseDirection.Down,
                    1,
                    3,
                    0,
                    3
                    );

                AddBranchConnection(connection);
            }
            else
            {
                Game.Current.Messages.AddDebugMessage(ErrorMessages.MissingBranchForConnection, "DebugDungeonBranch");
            }
        }
Exemplo n.º 2
0
 protected void AddBranchConnection(DungeonBranchConnection branchConnection)
 {
     _connections.Add(branchConnection);
 }