示例#1
0
        public static GameActor Load(string filename)
        {
            using (FileStream stream = File.OpenRead(filename))
            {
                int idx = filename.LastIndexOf(".nima");

                GameActor actor = new GameActor(filename.Substring(0, idx));
                if (actor.LoadFrom(stream))
                {
                    return(actor);
                }
                return(null);
            }
        }
示例#2
0
 public GameActorInstance(GameActor gameActor)
 {
     m_GameActor = gameActor;
 }