Procházet zdrojové kódy

add `set locationIdentifier` to `GameLocation`

Stephan Fuchs před 3 měsíci
rodič
revize
d449230a97
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      sugarcube/src/locations/_system/Location.ts

+ 4 - 0
sugarcube/src/locations/_system/Location.ts

@@ -16,6 +16,10 @@ class GameLocation{
 		return new LocationIdentifier(this.passage,this.passageArguments);
 	}
 
+	set locationIdentifier(v:LocationIdentifier){
+		this.update(v.passage,v.passageArguments);
+	}
+
 	get passage(){return this._passage;}
 	set passage(v:string){
 		if(typeof v != "string")