Beispiel #1
0
 public ScriptItemModel(ScriptItemModel gameScript, IdeCollection <IdeBaseItem> source) : base(source) // copy item
 {
     _script = new GameScript()
     {
         Script = gameScript._script.Script,
         Path   = gameScript._script.Path,
         GameId = gameScript._script.GameId
     };
 }
Beispiel #2
0
 public ScriptItemModel(ScriptItemModel gameScript, IdeCollection <IdeBaseItem> source) : base(source) // copy item
 {
     _script = new GameScript()
     {
         Script = gameScript._script.Script,
         GameId = gameScript._script.GameId
     };
     Asset = new AssetController(AssetType.PythonScript);
     Asset.Register(gameScript._script.Path);
     _script.Path           = Asset.FullPath;
     Asset.PropertyChanged += AssetUpdated;
 }