Пример #1
0
        public GameModelConfig getModelConfig(short key)
        {
            GameModelConfig cfg = null;

            modelList.TryGetValue(key, out cfg);
            return(cfg);
        }
Пример #2
0
        public float getModelScale(short key)
        {
            GameModelConfig cfg = null;

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

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

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