package com.badlogic.gdx.ingenuity;

import com.badlogic.gdx.ingenuity.extend.ICoreHelper;

/**
 * @作者 Mitkey
 * @时间 2017年3月24日 下午2:38:43
 * @类说明:
 * @版本 xx
 */
public class GdxData {

	/** 开启调试已加载纹理 */
	public static boolean DEBUG_MANAGED_TEXTURES = true;

	/** 素材宽比例 */
	public static final int WIDTH = 1280;
	/** 素材高比例 */
	public static final int HEIGHT = 720;

	private static GdxData ourInstance = new GdxData();

	private ICoreHelper coreHelper;

	private GdxData() {
	}

	public static GdxData getInstance() {
		return ourInstance;
	}

	public void initRuntime(ICoreHelper coreHelper) {
		this.coreHelper = coreHelper;
	}

	public ICoreHelper getCoreHelper() {
		return coreHelper;
	}

}

@@ -41,53 +41,259 @@
 ort 
-com.badlogic.gdx.ingenuity.extend.ICoreHelper
+java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;%0Aimport com.badlogic.gdx.ingenuity.extend.ICoreHelper;%0A%0Aimport net.mwplay.nativefont.NativeFont;%0Aimport net.mwplay.nativefont.NativeFontPaint
 ;%0A%0A/
@@ -652,16 +652,117 @@
 elper;%0A%0A
+%09/** %E9%BB%98%E8%AE%A4%E7%9A%84%E5%AD%97%E4%BD%93 */%0A%09private Map%3CInteger, NativeFont%3E DEFAULT_FONTS = new HashMap%3CInteger, NativeFont%3E();%0A%0A
 %09private
@@ -894,16 +894,16 @@
 lper) %7B%0A
-
 %09%09this.c
@@ -926,24 +926,284 @@
 Helper;%0A%09%7D%0A%0A
+%09public NativeFont getFont(int size) %7B%0A%09%09if (DEFAULT_FONTS.containsKey(size)) %7B%0A%09%09%09return DEFAULT_FONTS.get(size);%0A%09%09%7D else %7B%0A%09%09%09return DEFAULT_FONTS.put(size, new NativeFont(new NativeFontPaint(size)).appendText(FreeTypeFontGenerator.DEFAULT_CHARS));%0A%09%09%7D%0A%09%7D%0A%0A
 %09public ICor

modify GdxData.java