public GameModelConfig getModelConfig(short key) { GameModelConfig cfg = null; modelList.TryGetValue(key, out cfg); return(cfg); }
public float getModelScale(short key) { GameModelConfig cfg = null; if (modelList.TryGetValue(key, out cfg)) { return(cfg.Scale); } return(0); }
public Vector3 getModelPosition(short key) { GameModelConfig cfg = null; if (modelList.TryGetValue(key, out cfg)) { return(cfg.Position); } return(Vector3.Zero); }
public String getModelPath(short key) { GameModelConfig cfg = null; if (modelList.TryGetValue(key, out cfg)) { return(cfg.path); } return(null); }
public String getModelClipName(short key, int state) { GameModelConfig cfg = null; if (modelList.TryGetValue(key, out cfg)) { String clipname = ""; cfg.stateClip.TryGetValue((short)state, out clipname); return(clipname); } return(null); }
public void Load(short key, GameModelConfig cfg) { modelList.Add(key, cfg); }