当前位置: 首页>>代码示例>>C#>>正文


C# Puzzle.LockPlace方法代码示例

本文整理汇总了C#中Puzzle.LockPlace方法的典型用法代码示例。如果您正苦于以下问题:C# Puzzle.LockPlace方法的具体用法?C# Puzzle.LockPlace怎么用?C# Puzzle.LockPlace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Puzzle的用法示例。


在下文中一共展示了Puzzle.LockPlace方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");
		puzzle.LockPlace(lockedPlace, "Boss");

		lockedPlace.SpawnSingleMob("Mob1", 12001, 6); // Ghost Armor
		lockedPlace.CloseAllDoors();
	}
开发者ID:aura-project,项目名称:aura,代码行数:8,代码来源:ghostarmor_darklord.cs

示例2: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");

		var zwitch = new Switch("Switch", lockedPlace.LockColor);
		lockedPlace.AddProp(zwitch, Placement.Center);

		puzzle.LockPlace(lockedPlace);
	}
开发者ID:aura-project,项目名称:aura,代码行数:9,代码来源:rp_giantspider2.cs

示例3: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");
		var chestPlace = puzzle.GetPlace("ChestPlace");

		puzzle.LockPlace(lockedPlace, "Lock");

		chestPlace.AddProp(new Chest(puzzle, "KeyChest"), Placement.Random);
	}
开发者ID:tkiapril,项目名称:aura,代码行数:9,代码来源:entrance_puzzle.cs

示例4: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");
		puzzle.LockPlace(lockedPlace);

		lockedPlace.SpawnSingleMob("Mob1", 10101, 6); // Goblins
		lockedPlace.SpawnSingleMob("Mob2", 1000, 1); // Traveler A

		lockedPlace.CloseAllDoors();
	}
开发者ID:aura-project,项目名称:aura,代码行数:10,代码来源:rp_trefor.cs

示例5: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");
		var key = puzzle.LockPlace(lockedPlace, "Boss");

		var chest = new Chest(puzzle, "KeyChest");
		lockedPlace.AddProp(chest, Placement.Center);

		chest.Info.Direction = MabiMath.DegreeToRadian(90);
		chest.Add(Item.Create(GoddessPass));
		chest.Add(key);
	}
开发者ID:aura-project,项目名称:aura,代码行数:12,代码来源:final_dungeon.cs

示例6: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");

		for (int i = 1; i <= 4; ++i)
		{
			var zwitch = new Switch("Switch" + i, lockedPlace.LockColor);
			if (ChannelServer.Instance.Conf.World.EasySwitch && puzzle.Get("open") == "Switch" + i)
				zwitch.Info.Color2 = 0xFFFFFF;

			lockedPlace.AddProp(zwitch, Placement.Corner4);
			puzzle.Set("Switch" + i + "Activated", false);
		}

		puzzle.LockPlace(lockedPlace);
	}
开发者ID:tkiapril,项目名称:aura,代码行数:16,代码来源:switchdoor_switchmonster.cs

示例7: OnPuzzleCreate

	public override void OnPuzzleCreate(Puzzle puzzle)
	{
		var lockedPlace = puzzle.GetPlace("LockedPlace");
		var chestPlace = puzzle.GetPlace("ChestPlace");

		var key = puzzle.LockPlace(lockedPlace, "Lock");

		var chest = new Chest(puzzle, "KeyChest");
		chest.Add(Item.Create(id: 2000, amountMin: 10, amountMax: 30));
		chest.Add(key);
		chestPlace.AddProp(chest, Placement.Corner4);

		chestPlace.SpawnSingleMob("Trap", "Mob3", Placement.Corner4);
		chestPlace.SpawnSingleMob("ChestMob1", "Mob1");
		lockedPlace.SpawnSingleMob("ChestMob2", "Mob2");
	}
开发者ID:tkiapril,项目名称:aura,代码行数:16,代码来源:keychest_3mimic.cs


注:本文中的Puzzle.LockPlace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。