protected override void OnEntityComponentRemoved(Entity entity, ModelComponent component, ModelTransformationInfo data) { // Unregister model view hierarchy update entity.Transform.PostOperations.Remove(data.TransformOperation); }
protected override void OnEntityComponentAdding(Entity entity, ModelComponent component, ModelTransformationInfo data) { // Register model view hierarchy update entity.Transform.PostOperations.Add(data.TransformOperation = new ModelViewHierarchyTransformOperation(component)); }
protected override bool IsAssociatedDataValid(Entity entity, ModelComponent component, ModelTransformationInfo associatedData) { return(component == associatedData.TransformOperation.ModelComponent); }
protected override bool IsAssociatedDataValid(Entity entity, ModelComponent component, ModelTransformationInfo associatedData) { return(entity.Get <ModelComponent>() == component); }