public T GetComponent <T>() where T : new() { int component_type = IEntityComponent.GetComponentID <T>(); ulong ptr = WComponent(handle, component_type, 3); T result = new T(); ((InternalObject)(object)result).SetHandle(ptr); return(result); }
public void AddComponent <T>() { int component_type = IEntityComponent.GetComponentID <T>(); WComponent(handle, component_type, 1); }
public void RemoveComponent <T>() { int component_type = IEntityComponent.GetComponentID <T>(); WComponent(handle, component_type, 2); }