GrandLarceny.Game.setProgress C# (CSharp) Method

setProgress() public method

public setProgress ( string a_progressName, bool a_checkPoint ) : void
a_progressName string
a_checkPoint bool
return void
        public void setProgress(string a_progressName, bool a_checkPoint)
        {
            if (a_checkPoint)
            {
                m_nextProgress = Serializer.getInstance().loadProgress(Game.getInstance().getCheckPointProgress(false));
            }
            else if (!a_progressName.Equals("temp.prog"))
            {
                m_nextProgress = Serializer.getInstance().loadProgress(Serializer.getInstance().getFileToStream(a_progressName,false));
            }
            m_nextProgress.setName(a_progressName);
        }