Esempio n. 1
0
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(),
                                                 "Sce.Atf.Applications.SkinService/Schemas");
     Load("skin.xsd");
 }
Esempio n. 2
0
 public SchemaLoader(IGameEngineProxy gameEngine)
 {
     m_gameEngine = gameEngine;
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "LevelEditor.schemas");
     Load("level_editor.xsd");
 }
Esempio n. 3
0
 public SchemaLoader(PropertyEditor propertyEditor)
 {
     m_propertyEditor = propertyEditor;
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "DomPropertyEditorSample/Schemas");
     Load("game.xsd");
 }
Esempio n. 4
0
        /// <summary>
        /// Constructor that loads the schema</summary>
        public SchemaLoader()
        {
            // set resolver to locate embedded .xsd file
            SchemaResolver = new ResourceStreamResolver(System.Reflection.Assembly.GetExecutingAssembly(), "CircuitEditorSample/schemas");
            var schema  = Load("Circuit.xsd");
            var version = schema.Version; // Version will be null if the xsd has no version attribute

            m_version = string.IsNullOrEmpty(version) ? new Version("1.0") : new Version(version);
        }
Esempio n. 5
0
        public void Test()
        {
            Assembly assembly           = Assembly.GetExecutingAssembly();
            ResourceStreamResolver test = new ResourceStreamResolver(
                assembly,
                "UnitTests.Atf/Resources");
            Uri uri = test.ResolveUri(null, "test.xsd");

            Assert.AreEqual(uri.ToString(), "file:///UnitTests.Atf/Resources/test.xsd");

            Stream strm = (Stream)test.GetEntity(uri, null, null);

            Assert.NotNull(strm);
        }
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "TimelineEditorSample.schemas");
     Load("timeline.xsd");
 }
Esempio n. 7
0
 public MaterialSchemaLoader()
 {
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "ControlsLibraryExt.Material");
     Load("material.xsd");
 }
Esempio n. 8
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "DomTreeEditorSample/Schemas");
     Load(Assembly.GetExecutingAssembly(), "UISchema.xsd");
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor</summary>
 public GameSchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "UsingDom/Schemas");
     Load("game.xsd");
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "ButterflyEngine/schemas");
     Load("story.xsd");
 }
Esempio n. 11
0
 /// <summary>
 /// Constructor that loads the schema</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(System.Reflection.Assembly.GetExecutingAssembly(), "CircuitEditorSample/schemas");
     Load("Circuit.xsd");
 }
Esempio n. 12
0
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "LevelEditor.schemas");
     Load("level_editor.xsd");
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "FsmEditorSample/schemas");
     Load("FSM_customized.xsd");
 }
Esempio n. 14
0
 /// <summary>
 /// Loads the UI schema, registers data extensions on the DOM types, annotates
 /// the types with display information and PropertyDescriptors.</summary>
 public SchemaLoader()
 {
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "WorldsmithATF/DOMSchema");
     Load("DotaObjects.xsd");
 }
Esempio n. 15
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "SimpleDomEditorWpfSample/schemas");
     Load("eventSequence.xsd");
 }
Esempio n. 16
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "WinGuiCommon/schemas");
     Load("sampleAppData.xsd");
 }
Esempio n. 17
0
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(),
         "Sce.Atf.Applications.SkinService/Schemas");
     Load("skin.xsd");
 }
Esempio n. 18
0
 /// <summary>
 /// Constructor</summary>
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "StatechartEditorSample/schemas");
     Load("Statechart.xsd");
 }
Esempio n. 19
0
 public SchemaLoader()
 {
     // set resolver to locate embedded .xsd file
     SchemaResolver = new ResourceStreamResolver(Assembly.GetExecutingAssembly(), "SceneEditor/Schemas");
     Load("bitBox.xsd");
 }