public GameItemConfig getItemConfig(short key) { GameItemConfig cfg = null; itemList.TryGetValue(key, out cfg); return(cfg); }
public short getEquipModelID(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.equipModelID); } return(0); }
public String getDescription(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.description); } return(null); }
public String getName(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.name); } return(null); }
public float getDropModelScale(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.dropScale); } return(0); }
public Vector3 getDropModelPosition(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.dropPosition); } return(Vector3.Zero); }
public String getDropModelPath(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.dropModelPath); } return(null); }
public String getInventoryTexturePath(short key) { GameItemConfig cfg = null; if (itemList.TryGetValue(key, out cfg)) { return(cfg.inventoryTexturePath); } return(null); }
public void Load(short key, GameItemConfig cfg) { itemList.Add(key, cfg); }