Ejemplo n.º 1
0
    public void Add(IGameComponent component)
    {
        if (components.ContainsKey(component.GetClassID()))
        {
            throw new System.ArgumentException("Entity already contains this component.");
        }

        components.Add(component.GetClassID(), component);
    }