wazho / DungeonGenerator

Dungeon Generator for XAOCX project, it publishes on Unity extension.
5 stars 0 forks source link

Validation System : Isolated Connection & Exactly the same graph. #77

Closed kertaskids closed 7 years ago

kertaskids commented 7 years ago

The method I used in illegal rules number 6 is too naive if anyone has a better method, please, tell me.

wazho commented 7 years ago
NullReferenceException: Object reference not set to an instance of an object
MissionGrammarSystem.ValidationSystem.ValidateExactlyDuplicated (MissionGrammarSystem.MissionRule rule, MissionGrammarSystem.GraphGrammar graphGrammar) (at Assets/DungeonGenerator/Editor/models/MissionGrammar/ValidationSystem.cs:100)
MissionGrammarSystem.ValidationSystem.<_validationMethods>m__8 (MissionGrammarSystem.MissionRule rule, MissionGrammarSystem.GraphGrammar graphGrammar) (at Assets/DungeonGenerator/Editor/models/MissionGrammar/ValidationSystem.cs:32)
MissionGrammarSystem.ValidationSystem.Validate (MissionGrammarSystem.MissionRule rule, MissionGrammarSystem.GraphGrammar graphGrammar) (at Assets/DungeonGenerator/Editor/models/MissionGrammar/ValidationSystem.cs:44)
MissionGrammarSystem.RulesWindow.RecordState () (at Assets/DungeonGenerator/Editor/views/Mission/RulesWindow.cs:970)
MissionGrammarSystem.RulesWindow.LayoutEditingButtonGroup () (at Assets/DungeonGenerator/Editor/views/Mission/RulesWindow.cs:750)
MissionGrammarSystem.RulesWindow.LayoutRuleCanvasEditor () (at Assets/DungeonGenerator/Editor/views/Mission/RulesWindow.cs:474)
MissionGrammarSystem.RulesWindow.OnGUI () (at Assets/DungeonGenerator/Editor/views/Mission/RulesWindow.cs:157)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)