Пример #1
0
		/// <summary>
		/// Creates new monster group.
		/// </summary>
		/// <param name="name"></param>
		/// <param name="puzzle"></param>
		/// <param name="place"></param>
		/// <param name="spawnPosition"></param>
		public MonsterGroup(string name, Puzzle puzzle, PuzzlePlace place, Placement spawnPosition = Placement.Random)
		{
			_monsters = new List<NPC>();

			this.Name = name;
			this.Puzzle = puzzle;
			this.Place = place;
			_spawnPosition = spawnPosition;
		}
Пример #2
0
		/// <summary>
		/// Creates new puzzle place.
		/// </summary>
		/// <param name="section"></param>
		/// <param name="puzzle"></param>
		/// <param name="name"></param>
		public PuzzlePlace(DungeonFloorSection section, Puzzle puzzle, string name)
		{
			_placementProviders = new Dictionary<Placement, PlacementProvider>();
			this.Doors = new Door[] { null, null, null, null };

			_section = section;
			_name = name;
			this.PlaceIndex = -1;
			this.Puzzle = puzzle;
		}
Пример #3
0
		public Puzzle NewPuzzle(Dungeon dungeon, DungeonFloorData floorData, DungeonPuzzleData puzzleData, PuzzleScript puzzleScript)
		{
			var puzzle = new Puzzle(dungeon, this, floorData, puzzleData, puzzleScript);
			this.Puzzles.Add(puzzle);
			return puzzle;
		}
Пример #4
0
		public virtual void OnMonsterDead(Puzzle puzzle, MonsterGroup group)
		{
		}
Пример #5
0
		public virtual void OnMobAllocated(Puzzle puzzle, MonsterGroup group)
		{
		}
Пример #6
0
		public virtual void OnPropEvent(Puzzle puzzle, Prop prop)
		{
		}
Пример #7
0
		public virtual void OnPuzzleCreate(Puzzle puzzle)
		{
		}
Пример #8
0
		public virtual void OnPrepare(Puzzle puzzle)
		{
		}
Пример #9
0
		public Chest(Puzzle puzzle, string name)
			: this(puzzle.Dungeon.Data.ChestId, name)
		{
		}
Пример #10
0
		public LockedChest(Puzzle puzzle, string name, string key)
			: this(puzzle.Dungeon.Data.ChestId, name, key)
		{
		}