FerretEngine/src/Core/Entity.cs
/// <summary>
/// Binds a Component to the Entity.
/// </summary>
/// <param name="component"></param>
/// <exception cref="InvalidOperationException"></exception>
Binds a Component to the Entity.
Binds a Component to the Entity .
public void Bind(Component component)
        {
            if (component.Entity != null)
                throw new InvalidOperationException("Cannot add a component that is already bound to an entity.");
            component.Bind(this);
            _createQueue.Enqueue(component);
        }
public void Bind ( Component component ) { if ( component . Entity != null ) throw new InvalidOperationException ( " " ) ; component . Bind ( this ) ; _createQueue . Enqueue ( component ) ; }
Binds a Component to the Entity.
Binds a Component to the Entity .
None
component
Component
None