Пример #1
0
        /// <summary>
        /// Finds informations for RunTimeCreator by the given name and creates the instance
        /// of the IStaticGameObject.
        /// </summary>
        /// <param name="typeName">The type of the creating object.</param>
        /// <param name="args">The arguments of the object.</param>
        /// <returns>Returns the created IStaticGameObject.</returns>
        public IStaticGameObject CreateISGO(string typeName, object[] args)
        {
            var    typeNode = GetGameObjectTypeNode(typeName);
            string fullName = typeNode.Attributes["fullName"].InnerText;

            var isgo = runtimeCtor.CreateISGO(fullName, args.ToArray());

            return(isgo);
        }