
[TIP] 메소드맵 StringMap 예제
·
소스모드/TIP
methodmap Player < StringMap { public Player(int id) { StringMap map = new StringMap(); map.SetValue("id", id); map.SetValue("userid", GetClientUserId(id)); map.SetValue("money", 100); return view_as(map); } property int Userid { public get() { int i; this.GetValue("userid", i); return i; } } property int Id { public get() { int i; this.GetValue("id", i); return i; } } property int Money { publi..