예제 #1
0
 protected override bool IsAssociatedDataValid(Entity entity, SpriteComponentState associatedData)
 {
     return
         (entity.Get(SpriteComponent.Key) == associatedData.SpriteComponent &&
          entity.Get(TransformComponent.Key) == associatedData.TransformComponent);
 }
예제 #2
0
 protected override bool IsAssociatedDataValid(Entity entity, SpriteComponent component, SpriteComponentState associatedData)
 {
     return
         (component == associatedData.SpriteComponent &&
          entity.Transform == associatedData.TransformComponent);
 }