当前位置: 首页>>代码示例>>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;未经允许,请勿转载。