示例#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);
 }