public static void Broadcast(this MessageSessionManager manager, Entity entity, IMessage message, int exceptEntityId = Entity.InvalidEntityId) { if (!entity.Has <Pos>()) { return; } }
public static void Broadcast <T>(this MessageSessionManager manager, Entity entity, int exceptEntityId = Entity.InvalidEntityId) where T : IMessage, new() { Broadcast(manager, entity, entity.ToMessage <T>(), exceptEntityId); }