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

            string fullName = typeNode.Attributes["fullName"].InnerText;

            var imgo = runtimeCtor.CreateIMGO(fullName, args.ToArray());

            return(imgo);
        }