當前位置: 首頁>>代碼示例>>Java>>正文


Java AssetManager類代碼示例

本文整理匯總了Java中ethanjones.cubes.graphics.assets.AssetManager的典型用法代碼示例。如果您正苦於以下問題:Java AssetManager類的具體用法?Java AssetManager怎麽用?Java AssetManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AssetManager類屬於ethanjones.cubes.graphics.assets包,在下文中一共展示了AssetManager類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: LuaModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public LuaModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> luaFiles, FileHandle luaFolder) {
  super(name, file, assetManager);
  this.luaFiles = luaFiles;
  this.luaFolder = luaFolder;
  this.modStates = new ArrayList<ModState>();

  this.globals = CubesLua.globals(); // each mod has its own globals
  this.luaModEvent = new Multimap<ModState, LuaFunction>();
  this.clientEventListeners = new ArrayList<LuaEventListener>();
  this.serverEventListeners = new ArrayList<LuaEventListener>();

  int length = Integer.MAX_VALUE;
  String current = luaFiles.keySet().iterator().next();
  for (Entry<String, FileHandle> entry : luaFiles.entrySet()) {
    String s = entry.getKey();
    if (s.toLowerCase().contains("init") && s.length() < length) {
      length = s.length();
      current = s;
    }
  }
  initFile = name + "|" + current;
  Log.debug("Using '" + initFile + "' as init file");
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:24,代碼來源:LuaModInstance.java

示例2: loadCore

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public static void loadCore() {
  AssetManager core = Assets.getCoreAssetManager();
  HashMap<String, FileHandle> map = new HashMap<String, FileHandle>();
  for (Asset j : core.getAssets("json/")) {
    map.put(j.getPath().substring(5), j.getFileHandle());
  }
  try {
    coreMap = load(map);
  } catch (IOException e) {
    throw new CubesException("Failed to load core json", e);
  }
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:13,代碼來源:JsonLoader.java

示例3: JsonModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public JsonModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> jsonFiles) {
	super(name, file, assetManager);
	this.jsonFiles = jsonFiles;
	List<ModState> modStates = new ArrayList<ModState>();
	modStates.add(ModState.Json);
	this.modStates = Collections.unmodifiableList(modStates);
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:8,代碼來源:JsonModInstance.java

示例4: JsonModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public JsonModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> jsonFiles) {
  super(name, file, assetManager);
  this.jsonFiles = jsonFiles;
  List<ModState> modStates = new ArrayList<ModState>();
  modStates.add(ModState.Json);
  this.modStates = Collections.unmodifiableList(modStates);
}
 
開發者ID:RedTroop,項目名稱:Cubes,代碼行數:8,代碼來源:JsonModInstance.java

示例5: JavaModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public JavaModInstance(String name, FileHandle file, AssetManager assetManager, T mod) {
  super(name, file, assetManager);
  this.mod = mod;
  modStates = new ArrayList<ModState>();
  modEventHandlers = new HashMap<Class<? extends ModEvent>, Method>();
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:7,代碼來源:JavaModInstance.java

示例6: ModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
protected ModInstance(String name, FileHandle file, AssetManager assetManager) {
	this.name = name;
	this.file = file;
	this.assetManager = assetManager;
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:6,代碼來源:ModInstance.java

示例7: getAssetManager

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public AssetManager getAssetManager() {
	return assetManager;
}
 
開發者ID:RedTroop,項目名稱:Cubes_2,代碼行數:4,代碼來源:ModInstance.java

示例8: ModInstance

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
protected ModInstance(String name, FileHandle file, AssetManager assetManager) {
  this.name = name;
  this.file = file;
  this.assetManager = assetManager;
}
 
開發者ID:RedTroop,項目名稱:Cubes,代碼行數:6,代碼來源:ModInstance.java

示例9: getAssetManager

import ethanjones.cubes.graphics.assets.AssetManager; //導入依賴的package包/類
public AssetManager getAssetManager() {
  return assetManager;
}
 
開發者ID:RedTroop,項目名稱:Cubes,代碼行數:4,代碼來源:ModInstance.java


注:本文中的ethanjones.cubes.graphics.assets.AssetManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。