Dungeon Architect  17.0.0
DungeonArchitect.Editors.DungeonEditorHelper Class Reference

Utility functions for various editor based features of Dungeon Architect More...

Static Public Member Functions

static void CreateThemeAssetInBrowser ()
 Creates a new Dungeon Theme in the specified asset folder. Access from the Create context menu in the Project window More...
 
static void CreateSnapAssetInBrowser ()
 
static void CreateSnapConnectionAssetInBrowser ()
 
static void CreateGridFlowAssetInBrowser ()
 
static void CreateSnapGridFlowGraphAssetInBrowser ()
 
static void CreateSnapGridFlowModuleBoundsAssetInBrowser ()
 
static void CreateSnapGridFlowModuleDatabaseAssetInBrowser ()
 
static void CreateSnapGridFlowPlaceableMarkerAssetInBrowser ()
 
static void CreateSnapGridFlowConnectionAssetInBrowser ()
 
static void CreateDungeonLandscapeRestCacheInBrowser ()
 
static bool OnOpenAsset (int instanceID, int line)
 Handle opening of theme graphs. When the user right clicks on the theme graph and selects open, the graph is shown in the theme editor More...
 
static T CreateAssetInBrowser< T > (string path, string defaultFilename)
 
static void HandlePostAssetCreated (ScriptableObject asset)
 
static string GetActiveScenePath ()
 
static void ShowThemeEditor (Graph graph)
 Shows the dungeon theme editor window and loads the specified graph into it More...
 
static void ShowDungeonFlowEditor (SnapFlowAsset snapFlow)
 Shows the dungeon flow editor window and loads the specified graph into it More...
 
static void ShowDungeonGridFlowEditor (GridFlowAsset gridFlow)
 Shows the dungeon grid flow editor window and loads the specified graph into it More...
 
static void ShowSnapGridFlowEditor (SnapGridFlowAsset snapGridFlow)
 Shows the dungeon grid flow editor window and loads the specified graph into it More...
 
static string MakeFilenameUnique (string dir, string filename)
 Creates a unique filename in the specified asset directory More...
 
static T CreateConstraintRule< T > (SpatialConstraintAsset spatialConstraint)
 
static void DestroySpatialConstraintAsset (SpatialConstraintAsset spatialConstraint)
 
static string GetAssetBrowserPath ()
 
static T GetWindowIfOpen< T > ()
 
static void MarkAsDirty (Graph graph)
 Marks the graph as dirty so that it is serialized to disk again when saved More...
 
static void CreateDefaultSpatialConstraintNodes (SpatialConstraintAsset constraintAsset, UIUndoSystem undo)
 
static T CreateSpatialConstraintNode< T > (SpatialConstraintAsset constraintAsset, Vector2 worldPosition, UIUndoSystem undo)
 
static void CreateEditorTag (string tag)
 Creates an editor tag More...
 
static void _Advanced_RecreateGraphNodeIds ()
 
static void MarkSceneDirty ()
 

Detailed Description

Utility functions for various editor based features of Dungeon Architect

Definition at line 26 of file DungeonEditorHelper.cs.

Member Function Documentation

◆ CreateEditorTag()

static void DungeonArchitect.Editors.DungeonEditorHelper.CreateEditorTag ( string  tag)
static

Creates an editor tag

Parameters
tag

Definition at line 456 of file DungeonEditorHelper.cs.

◆ CreateThemeAssetInBrowser()

static void DungeonArchitect.Editors.DungeonEditorHelper.CreateThemeAssetInBrowser ( )
static

Creates a new Dungeon Theme in the specified asset folder. Access from the Create context menu in the Project window

Definition at line 32 of file DungeonEditorHelper.cs.

◆ MakeFilenameUnique()

static string DungeonArchitect.Editors.DungeonEditorHelper.MakeFilenameUnique ( string  dir,
string  filename 
)
static

Creates a unique filename in the specified asset directory

Parameters
dirThe target directory this file will be placed in. Used for finding non-colliding filenames
filenameThe prefered filename. Will add incremental numbers to it till it finds a free filename
Returns
A filename not currently used in the specified directory

Definition at line 283 of file DungeonEditorHelper.cs.

◆ MarkAsDirty()

static void DungeonArchitect.Editors.DungeonEditorHelper.MarkAsDirty ( Graph  graph)
static

Marks the graph as dirty so that it is serialized to disk again when saved

Parameters
graph

Definition at line 383 of file DungeonEditorHelper.cs.

◆ OnOpenAsset()

static bool DungeonArchitect.Editors.DungeonEditorHelper.OnOpenAsset ( int  instanceID,
int  line 
)
static

Handle opening of theme graphs. When the user right clicks on the theme graph and selects open, the graph is shown in the theme editor

Parameters
instanceID
line
Returns
true if trying to open a dungeon theme, indicating that it has been handled. false otherwise

Definition at line 139 of file DungeonEditorHelper.cs.

◆ ShowDungeonFlowEditor()

static void DungeonArchitect.Editors.DungeonEditorHelper.ShowDungeonFlowEditor ( SnapFlowAsset  snapFlow)
static

Shows the dungeon flow editor window and loads the specified graph into it

Parameters
graphThe graph to load in the dungeon theme editor window

Definition at line 221 of file DungeonEditorHelper.cs.

◆ ShowDungeonGridFlowEditor()

static void DungeonArchitect.Editors.DungeonEditorHelper.ShowDungeonGridFlowEditor ( GridFlowAsset  gridFlow)
static

Shows the dungeon grid flow editor window and loads the specified graph into it

Parameters
graphThe graph to load in the dungeon theme editor window

Definition at line 241 of file DungeonEditorHelper.cs.

◆ ShowSnapGridFlowEditor()

static void DungeonArchitect.Editors.DungeonEditorHelper.ShowSnapGridFlowEditor ( SnapGridFlowAsset  snapGridFlow)
static

Shows the dungeon grid flow editor window and loads the specified graph into it

Parameters
graphThe graph to load in the dungeon theme editor window

Definition at line 261 of file DungeonEditorHelper.cs.

◆ ShowThemeEditor()

static void DungeonArchitect.Editors.DungeonEditorHelper.ShowThemeEditor ( Graph  graph)
static

Shows the dungeon theme editor window and loads the specified graph into it

Parameters
graphThe graph to load in the dungeon theme editor window

Definition at line 200 of file DungeonEditorHelper.cs.


The documentation for this class was generated from the following file: