/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.kirauks.minigames.launcher.games;

import java.io.Serializable;
import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author Karl
 */
public class GameModel implements Serializable{
    private static final long serialVersionUID = 1L;
    
    private SimpleStringProperty name;
    private SimpleStringProperty description;
    private SimpleStringProperty path;
    
    public GameModel(String name, String description, String url){
        this.name = new SimpleStringProperty(name);
        this.name = new SimpleStringProperty(description);
        this.name = new SimpleStringProperty(url);
    }
    
    public ReadOnlyStringProperty nameProperty(){
        return this.name;
    }
    public ReadOnlyStringProperty descriptionProperty(){
        return this.description;
    }
    public ReadOnlyStringProperty pathProperty(){
        return this.path;
    }
    
    public String getName(){
        return this.name.getValue();
    }
    public String getDescription(){
        return this.description.getValue();
    }
    public String getPath(){
        return this.path.getValue();
    }
}

@@ -241,20 +241,22 @@
 java.io.
-Seri
+Extern
 alizable
@@ -257,16 +257,101 @@
 izable;%0A
+import java.io.IOException;%0Aimport java.io.ObjectInput;%0Aimport java.io.ObjectOutput;%0A
 import j
@@ -512,12 +512,14 @@
 nts 
-Seri
+Extern
 aliz
@@ -736,53 +736,58 @@
 del(
-String name, String description, String url)%7B
+)%7B%0A        this.name = new SimpleStringProperty();
 %0A   
@@ -788,36 +788,43 @@
 );%0A        this.
-name
+description
  = new SimpleStr
@@ -835,20 +835,16 @@
 roperty(
-name
 );%0A     
@@ -843,36 +843,36 @@
 );%0A        this.
-name
+path
  = new SimpleStr
@@ -887,66 +887,208 @@
 rty(
-description);%0A        this.name = new SimpleStringProperty
+);%0A    %7D%0A    public GameModel(String name, String description, String url)%7B%0A        this();%0A        this.name.setValue(name);%0A        this.description.setValue(description);%0A        this.path.setValue
 (url
@@ -1595,11 +1595,617 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public void writeExternal(ObjectOutput oo) throws IOException %7B%0A        oo.writeObject(this.name.getValue());%0A        oo.writeObject(this.description.getValue());%0A        oo.writeObject(this.path.getValue());%0A    %7D%0A%0A    @Override%0A    public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException %7B%0A        this.name.setValue((String) oi.readObject());%0A        this.description.setValue((String) oi.readObject());%0A        this.path.setValue((String) oi.readObject());%0A    %7D%0A    %0A    @Override%0A    public String toString()%7B%0A        return this.name.getValue();%0A    %7D
 %0A%7D%0A

Fix GameModel serialization