Example #1
0
        public void TestCapture()
        {
            IEntity entity           = new Entity(null, Vector2.Zero, Vector2.Zero, false);
            var     captureComponent = new CaptureComponent(entity);

            entity.Update();

            Assert.IsTrue(entity.HasComponent <CaptureComponent>());
            Assert.AreSame(captureComponent, entity.GetComponent <CaptureComponent>());
            Assert.AreSame(entity, entity.GetComponent <CaptureComponent>().Parent);
        }
Example #2
0
 public ClusterComponentAttributes(IGH_Component component)
     : base(component)
 {
     MyComponent = (CaptureComponent)component;
 }