Exemple #1
0
func (he *HouseEditor) Save() (string, error) {
	path := filepath.Join(datadir, "houses", he.house.Name+".house")
	err := base.SaveJson(path, he.house)
	return path, err
}
Exemple #2
0
func (rep *RoomEditorPanel) Save() (string, error) {
	path := filepath.Join(datadir, "rooms", rep.room.Name+".room")
	err := base.SaveJson(path, rep.room)
	return path, err
}
Exemple #3
0
func (h *HouseDef) Save(path string) {
	base.SaveJson(path, h)
}