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/Server/IEntityManager.cs
Drew DeVault e5a1ee3439 Implement crafting from the inventory window
This does not include all recipes in the game, and there is no support
for crafting benches yet.
2015-02-07 15:51:38 -07:00

22 lines
678 B
C#

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