Exemple #1
0
        public GameModelConfig getModelConfig(short key)
        {
            GameModelConfig cfg = null;

            modelList.TryGetValue(key, out cfg);
            return(cfg);
        }
Exemple #2
0
        public float getModelScale(short key)
        {
            GameModelConfig cfg = null;

            if (modelList.TryGetValue(key, out cfg))
            {
                return(cfg.Scale);
            }
            return(0);
        }
Exemple #3
0
        public Vector3 getModelPosition(short key)
        {
            GameModelConfig cfg = null;

            if (modelList.TryGetValue(key, out cfg))
            {
                return(cfg.Position);
            }
            return(Vector3.Zero);
        }
Exemple #4
0
        public String getModelPath(short key)
        {
            GameModelConfig cfg = null;

            if (modelList.TryGetValue(key, out cfg))
            {
                return(cfg.path);
            }
            return(null);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
 public void Load(short key, GameModelConfig cfg)
 {
     modelList.Add(key, cfg);
 }