예제 #1
0
/** creates a TMX Format with an XML string and a TMX resource path */
    public static TMXMapInfo createWithXML(ref String tmxString, ref String resourcePath)
    {
        TMXMapInfo ret = new TMXMapInfo();

        if (ret.initWithXML(tmxString, resourcePath))
        {
            return(ret);
        }
        return(null);
    }
예제 #2
0
    /** creates a TMX Format with a tmx file */
    public static TMXMapInfo create(ref String tmxFile)
    {
        TMXMapInfo ret = new TMXMapInfo();

        if (ret.initWithTMXFile(tmxFile))
        {
            return(ret);
        }

        return(null);
    }