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); } }
public GameActorInstance(GameActor gameActor) { m_GameActor = gameActor; }