aboutsummaryrefslogtreecommitdiff
path: root/source/shared/PlayerSave.hx
blob: 298eca6fd3a2434010e647dc24a45ca276a75cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
	}
}