Forge/Integration/GameEngineManager.cs
/// <summary>
/// Returns the ITemplateGroup JSON that the engine will be loaded with.
/// </summary>
Returns the ITemplateGroup JSON that the engine will be loaded with.
Returns the ITemplateGroup JSON that the engine will be loaded with .
protected string GetTemplateJson() {
            string levelJson = _levelDesigner.SavedLevelTemplateState;
            if (string.IsNullOrEmpty(levelJson)) {
                levelJson = File.ReadAllText(_levelDesigner.LevelTemplatePath);
            }
            string sharedJson = _levelDesigner.SavedSharedTemplateState;
            if (string.IsNullOrEmpty(sharedJson)) {
                sharedJson = File.ReadAllText(_levelDesigner.SharedTemplatePath);
            }
            return LevelManager.MergeTemplateGroups(
                new List<string>() {
                    levelJson,
                    sharedJson
                });
        }
protected string GetTemplateJson ( ) { string levelJson = _levelDesigner . SavedLevelTemplateState ; if ( string . IsNullOrEmpty ( levelJson ) ) { levelJson = File . ReadAllText ( _levelDesigner . LevelTemplatePath ) ; } string sharedJson = _levelDesigner . SavedSharedTemplateState ; if ( string . IsNullOrEmpty ( sharedJson ) ) { sharedJson = File . ReadAllText ( _levelDesigner . SharedTemplatePath ) ; } return LevelManager . MergeTemplateGroups ( new List < string > ( ) { levelJson , sharedJson } ) ; }
Returns the ITemplateGroup JSON that the engine will be loaded with.
Returns the ITemplateGroup JSON that the engine will be loaded with .
// get the saved level JSON or read it from the file // get the saved shared JSON or read it from the file