Ejemplo n.º 1
0
        public override void Initialize(IDirectXProvider directX)
        {
            Designer d = new Designer();

            d.Begin();
            d.FillRectangle(BoundingRectangle, Fill);
            d.End();

            Shape = d.Result[0];
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            Designer designer = new Designer(Services);

            designer.Begin();
            foreach (var instruction in instructions)
            {
                instruction.Execute(designer);
            }
            designer.End();
            isInited = true;

            var model = designer.Result;

            model.Name = Name + ".Mesh";
            AssetName  = model.Name;
            Services.GetService <IAssetProvider>().Store(model.Name, model);
            Messenger.SendToEntity <ModelComponent>(new ContentMessage <Model>(Owner, AssetName, model), Owner);
        }