using System;
using TrueCraft.API.Entities;
using System.Collections.Generic;
using TrueCraft.API.Networking;
using TrueCraft.API.World;
namespace TrueCraft.API.Server
{
public interface IEntityManager
{
IWorld World { get; }
TimeSpan TimeSinceLastUpdate { get; }
///
/// Adds an entity to the world and assigns it an entity ID.
///
void SpawnEntity(IEntity entity);
void DespawnEntity(IEntity entity);
void FlushDespawns();
IEntity GetEntityByID(int id);
void Update();
void SendEntitiesToClient(IRemoteClient client);
IList EntitiesInRange(Vector3 center, float radius);
IList ClientsForEntity(IEntity entity);
}
}