package shared; class PlayerSave { public static final instance:PlayerSave = new PlayerSave(); @:isVar public var name(get, set):String; @:isVar public var guid(get, set):String; private function new() {} public function setPlayerData(_name:String, _name:String) { this.name = _name; this.guid = _name; } function set_name(name:String):String { return this.name = name; } public function get_name() { return name; } function set_guid(guid:String):String { return this.guid = guid; } public function get_guid() { return guid; } }