Beispiel #1
0
        static public void RegisterType(string TypeName, CreateNewEntityOfType TypeGenerator, CreateNewXMLSerializerOfType XMLGenerator)
        {
            if (TypeNameToFunctionTable == null)
            {
                TypeNameToFunctionTable = new Dictionary <string, FunctionTable>();
            }

            if (TypeNameToFunctionTable.ContainsKey(TypeName))
            {
                TypeNameToFunctionTable[TypeName] = new FunctionTable(TypeGenerator, XMLGenerator, TypeNameToFunctionTable[TypeName].NewEditorBox);
            }
            else
            {
                TypeNameToFunctionTable.Add(TypeName, new FunctionTable(TypeGenerator, XMLGenerator, null));
            }
        }
Beispiel #2
0
 public FunctionTable(CreateNewEntityOfType InEntity, CreateNewXMLSerializerOfType InXML, CreateEditorBoxForType InEditorBox)
 {
     NewEntity = InEntity;
     NewXMLSerializer = InXML;
     NewEditorBox = InEditorBox;
 }
Beispiel #3
0
 public FunctionTable(CreateNewEntityOfType InEntity, CreateNewXMLSerializerOfType InXML, CreateEditorBoxForType InEditorBox)
 {
     NewEntity        = InEntity;
     NewXMLSerializer = InXML;
     NewEditorBox     = InEditorBox;
 }
Beispiel #4
0
        public static void RegisterType(string TypeName, CreateNewEntityOfType TypeGenerator, CreateNewXMLSerializerOfType XMLGenerator)
        {
            if(TypeNameToFunctionTable == null)
            {
                TypeNameToFunctionTable = new Dictionary<string, FunctionTable>();
            }

            if(TypeNameToFunctionTable.ContainsKey(TypeName))
            {
                TypeNameToFunctionTable[TypeName] = new FunctionTable(TypeGenerator, XMLGenerator, TypeNameToFunctionTable[TypeName].NewEditorBox);
            }
            else
            {
                TypeNameToFunctionTable.Add(TypeName, new FunctionTable(TypeGenerator, XMLGenerator, null));
            }
        }