C# Class StonehearthEditor.GameMasterDataManager

Afficher le fichier Open project: stonehearth/stonehearth-editor Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddNewGenericScriptNode ( IGraphOwner owner, string scriptNodeName, string filePath ) : bool
owner IGraphOwner
scriptNodeName string
filePath string
Résultat bool

ClearModifiedFlags() public méthode

public ClearModifiedFlags ( ) : void
Résultat void

CloneNode() public méthode

public CloneNode ( IGraphOwner graphOwner, GameMasterNode original, string cloneName ) : bool
graphOwner IGraphOwner
original GameMasterNode
cloneName string
Résultat bool

DeleteNode() public méthode

public DeleteNode ( string nodePath ) : bool
nodePath string
Résultat bool

FillEncounterNodeTree() public méthode

public FillEncounterNodeTree ( TreeView treeView ) : void
treeView System.Windows.Forms.TreeView
Résultat void

GameMasterDataManager() public méthode

public GameMasterDataManager ( ) : System.Collections.Generic
Résultat System.Collections.Generic

GetGameMasterNode() public méthode

public GetGameMasterNode ( string nodeId ) : GameMasterNode
nodeId string
Résultat GameMasterNode

GetGenericScriptNodes() public méthode

public GetGenericScriptNodes ( ) : ICollection
Résultat ICollection

GetInstance() public static méthode

public static GetInstance ( ) : GameMasterDataManager
Résultat GameMasterDataManager

Load() public méthode

public Load ( ) : void
Résultat void

OnCampaignSelected() public méthode

public OnCampaignSelected ( IGraphOwner graphOwner, TreeNode selectedNode ) : void
graphOwner IGraphOwner
selectedNode System.Windows.Forms.TreeNode
Résultat void

RefreshGraph() public méthode

public RefreshGraph ( IGraphOwner graphOwner ) : void
graphOwner IGraphOwner
Résultat void

SaveModifiedFiles() public méthode

public SaveModifiedFiles ( ) : void
Résultat void

SelectCampaign() public méthode

public SelectCampaign ( IGraphOwner graphOwner, string module, string name ) : void
graphOwner IGraphOwner
module string
name string
Résultat void

TryAddEdge() public méthode

public TryAddEdge ( string sourceId, string destinationId ) : bool
sourceId string
destinationId string
Résultat bool

TryModifyJson() public méthode

public TryModifyJson ( IGraphOwner graphOwner, GameMasterNode node, string newJsonString ) : void
graphOwner IGraphOwner
node GameMasterNode
newJsonString string
Résultat void