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