C# Class StonehearthEditor.GameMasterDataManager

显示文件 Open project: stonehearth/stonehearth-editor Class Usage Examples

Public Methods

Method Description
AddNewGenericScriptNode ( IGraphOwner owner, string scriptNodeName, string filePath ) : bool
ClearModifiedFlags ( ) : void
CloneNode ( IGraphOwner graphOwner, GameMasterNode original, string cloneName ) : bool
DeleteNode ( string nodePath ) : bool
FillEncounterNodeTree ( TreeView treeView ) : void
GameMasterDataManager ( ) : System.Collections.Generic
GetGameMasterNode ( string nodeId ) : GameMasterNode
GetGenericScriptNodes ( ) : ICollection
GetInstance ( ) : GameMasterDataManager
Load ( ) : void
OnCampaignSelected ( IGraphOwner graphOwner, TreeNode selectedNode ) : void
RefreshGraph ( IGraphOwner graphOwner ) : void
SaveModifiedFiles ( ) : void
SelectCampaign ( IGraphOwner graphOwner, string module, string name ) : void
TryAddEdge ( string sourceId, string destinationId ) : bool
TryModifyJson ( IGraphOwner graphOwner, GameMasterNode node, string newJsonString ) : void

Private Methods

Method Description
ParseEncounterScripts ( string moduleName, string folderPath ) : void
ParseGenericEncounterScripts ( string folderPath ) : void
ParseNodeGraph ( string moduleName, string folderPath ) : void
SearchForFileType ( string directory, string fileType, List luaFilesFound ) : void

Method Details

AddNewGenericScriptNode() public method

public AddNewGenericScriptNode ( IGraphOwner owner, string scriptNodeName, string filePath ) : bool
owner IGraphOwner
scriptNodeName string
filePath string
return bool

ClearModifiedFlags() public method

public ClearModifiedFlags ( ) : void
return void

CloneNode() public method

public CloneNode ( IGraphOwner graphOwner, GameMasterNode original, string cloneName ) : bool
graphOwner IGraphOwner
original GameMasterNode
cloneName string
return bool

DeleteNode() public method

public DeleteNode ( string nodePath ) : bool
nodePath string
return bool

FillEncounterNodeTree() public method

public FillEncounterNodeTree ( TreeView treeView ) : void
treeView System.Windows.Forms.TreeView
return void

GameMasterDataManager() public method

public GameMasterDataManager ( ) : System.Collections.Generic
return System.Collections.Generic

GetGameMasterNode() public method

public GetGameMasterNode ( string nodeId ) : GameMasterNode
nodeId string
return GameMasterNode

GetGenericScriptNodes() public method

public GetGenericScriptNodes ( ) : ICollection
return ICollection

GetInstance() public static method

public static GetInstance ( ) : GameMasterDataManager
return GameMasterDataManager

Load() public method

public Load ( ) : void
return void

OnCampaignSelected() public method

public OnCampaignSelected ( IGraphOwner graphOwner, TreeNode selectedNode ) : void
graphOwner IGraphOwner
selectedNode System.Windows.Forms.TreeNode
return void

RefreshGraph() public method

public RefreshGraph ( IGraphOwner graphOwner ) : void
graphOwner IGraphOwner
return void

SaveModifiedFiles() public method

public SaveModifiedFiles ( ) : void
return void

SelectCampaign() public method

public SelectCampaign ( IGraphOwner graphOwner, string module, string name ) : void
graphOwner IGraphOwner
module string
name string
return void

TryAddEdge() public method

public TryAddEdge ( string sourceId, string destinationId ) : bool
sourceId string
destinationId string
return bool

TryModifyJson() public method

public TryModifyJson ( IGraphOwner graphOwner, GameMasterNode node, string newJsonString ) : void
graphOwner IGraphOwner
node GameMasterNode
newJsonString string
return void