This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
TrueCraft/TrueCraft.API/AI/ISpawnRule.cs
2015-07-03 11:26:41 -06:00

24 lines
688 B
C#

using System;
using TrueCraft.API.World;
using TrueCraft.API.Server;
namespace TrueCraft.API.AI
{
public interface ISpawnRule
{
/// <summary>
/// One in every n chunks will spawn mobs (with randomness mixed in).
/// </summary>
int ChunkSpawnChance { get; }
/// <summary>
/// Spawns mobs on a given chunk immediately after the chunk has been generated.
/// </summary>
void GenerateMobs(IChunk chunk, IEntityManager entityManager);
/// <summary>
/// Spawns mobs as part of the ongoing spawn cycle.
/// </summary>
void SpawnMobs(IChunk chunk, IEntityManager entityManager);
}
}