コード例 #1
0
ファイル: NPCEntry.cs プロジェクト: KroneckerX/WCell
		public NPC SpawnAt(Map map, Vector3 pos, bool hugGround = false)
		{
			var npc = Create(map.DifficultyIndex);
			if (hugGround && InhabitType == InhabitType.Ground)
			{
				pos.Z = map.Terrain.GetGroundHeightUnderneath(pos);
			}
			map.AddObject(npc, pos);
			return npc;
		}
コード例 #2
0
ファイル: NavFigurine.cs プロジェクト: KroneckerX/WCell
		public NavFigurine(Map map, Vector3 location) : 
			this()
		{
			map.AddObject(this, ref location);
		}
コード例 #3
0
ファイル: NPCEntry.cs プロジェクト: MeaNone/WCell
		public NPC SpawnAt(Map rgn, Vector3 pos)
		{
			var npc = Create(rgn.DifficultyIndex);
			rgn.AddObject(npc, pos);
			return npc;
		}