Ejemplo n.º 1
0
        public override void In(FlowEventArgs e)
        {
            SetValue(nameof(Path));
            SetValue(nameof(VertexBuffer));

            if (resourceManager != null && VertexBuffer != null)
            {
                SetValue(nameof(PrimitiveType));
                SetValue(nameof(PrimitiveCount));
                SetValue(nameof(StartIndex));
                SetValue(nameof(VertexCount));
                Object = (PolygonObject)resourceManager.GetResource(Path, PPDCoreModel.Data.ResourceKind.Polygon, new Dictionary <string, object>
                {
                    { "Vertex", VertexBuffer },
                    { "PrimitiveType", PrimitiveType },
                    { "PrimitiveCount", PrimitiveCount },
                    { "StartIndex", StartIndex },
                    { "VertexCount", VertexCount },
                });
                OnSuccess();
            }
            else
            {
                OnFailed();
            }
        }
Ejemplo n.º 2
0
 public override void In(FlowScriptEngine.FlowEventArgs e)
 {
     SetValue(nameof(Path));
     if (resourceManager != null)
     {
         Value = resourceManager.GetResource(Path, PPDCoreModel.Data.ResourceKind.Others, null) as Stream;
         OnSuccess();
     }
     else
     {
         OnFailed();
     }
 }
Ejemplo n.º 3
0
        public override void In(FlowEventArgs e)
        {
            SetValue(nameof(Path));

            if (resourceManager != null)
            {
                Object = (SoundResource)resourceManager.GetResource(Path, PPDCoreModel.Data.ResourceKind.Sound, new Dictionary <string, object>());
                OnSuccess();
            }
            else
            {
                OnFailed();
            }
        }
Ejemplo n.º 4
0
 public override void In(FlowEventArgs e)
 {
     SetValue(nameof(VertexCount));
     if (VertexCount > 0)
     {
         Object = (VertexInfo)resourceManager.GetResource("", PPDCoreModel.Data.ResourceKind.VertexBuffer, new Dictionary <string, object>()
         {
             { nameof(VertexCount), VertexCount }
         });
         OnSuccess();
     }
     else
     {
         OnFailed();
     }
 }
Ejemplo n.º 5
0
        public override void In(FlowEventArgs e)
        {
            SetValue(nameof(Path));
            SetValue(nameof(Position));
            SetValue(nameof(IsCenter));

            if (resourceManager != null)
            {
                Object = (PictureObject)resourceManager.GetResource(Path, PPDCoreModel.Data.ResourceKind.Image, new Dictionary<string, object>
                {
                    {"Position",Position},                    {"IsCenter",IsCenter}                });
                OnSuccess();
            }
            else
            {
                OnFailed();
            }
        }
Ejemplo n.º 6
0
 public override void In(FlowScriptEngine.FlowEventArgs e)
 {
     if (resourceManager != null)
     {
         SetValue(nameof(Width));
         SetValue(nameof(Height));
         SetValue(nameof(Color));
         Object = (RectangleComponent)resourceManager.GetResource("", PPDCoreModel.Data.ResourceKind.Rectangle, new Dictionary <string, object>
         {
             { "Color", Color }
         });
         Object.RectangleHeight = Height;
         Object.RectangleWidth  = Width;
         OnSuccess();
     }
     else
     {
         OnFailed();
     }
 }
Ejemplo n.º 7
0
        public override void In(FlowEventArgs e)
        {
            SetValue(nameof(Path));
            SetValue(nameof(Position));
            SetValue(nameof(Alignment));
            SetValue(nameof(MaxDigit));

            if (resourceManager != null)
            {
                Object = (NumberPictureObject)resourceManager.GetResource(Path, PPDCoreModel.Data.ResourceKind.Number, new Dictionary <string, object>
                {
                    { "Position", Position },
                    { "Alignment", Alignment },
                    { "MaxDigit", MaxDigit }
                });
                OnSuccess();
            }
            else
            {
                OnFailed();
            }
        }