2222final class GatheringJoinInfo{
2323
2424 public function __construct (
25- private string $ experienceId ,
25+ private UuidInterface $ experienceId ,
2626 private string $ experienceName ,
27- private string $ experienceWorldId ,
27+ private UuidInterface $ experienceWorldId ,
2828 private string $ experienceWorldName ,
2929 private string $ creatorId ,
3030 private UuidInterface $ targetId ,
3131 private string $ scenarioId ,
3232 private string $ serverId ,
33- private string $ storeId ,
34- private string $ storeName ,
35- private bool $ presenceConfiguration
3633 ){}
3734
38- public function getExperienceId () : string { return $ this ->experienceId ; }
35+ public function getExperienceId () : UuidInterface { return $ this ->experienceId ; }
3936
4037 public function getExperienceName () : string { return $ this ->experienceName ; }
4138
42- public function getExperienceWorldId () : string { return $ this ->experienceWorldId ; }
39+ public function getExperienceWorldId () : UuidInterface { return $ this ->experienceWorldId ; }
4340
4441 public function getExperienceWorldName () : string { return $ this ->experienceWorldName ; }
4542
@@ -51,26 +48,16 @@ public function getScenarioId() : string{ return $this->scenarioId; }
5148
5249 public function getServerId () : string { return $ this ->serverId ; }
5350
54- public function getStoreId () : string { return $ this ->storeId ; }
55-
56- public function getStoreName () : string { return $ this ->storeName ; }
57-
58- public function isPresenceConfiguration () : bool { return $ this ->presenceConfiguration ; }
59-
6051 public static function read (ByteBufferReader $ in ) : self {
61- $ experienceId = CommonTypes::getString ($ in );
52+ $ experienceId = CommonTypes::getUUID ($ in );
6253 $ experienceName = CommonTypes::getString ($ in );
63- $ experienceWorldId = CommonTypes::getString ($ in );
54+ $ experienceWorldId = CommonTypes::getUUID ($ in );
6455 $ experienceWorldName = CommonTypes::getString ($ in );
6556 $ creatorId = CommonTypes::getString ($ in );
6657 $ targetId = CommonTypes::getUUID ($ in );
6758 $ scenarioId = CommonTypes::getString ($ in );
6859 $ serverId = CommonTypes::getString ($ in );
6960
70- $ storeId = CommonTypes::getString ($ in );
71- $ storeName = CommonTypes::getString ($ in );
72- $ presenceConfiguration = CommonTypes::getBool ($ in );
73-
7461 return new self (
7562 $ experienceId ,
7663 $ experienceName ,
@@ -80,24 +67,17 @@ public static function read(ByteBufferReader $in) : self{
8067 $ targetId ,
8168 $ scenarioId ,
8269 $ serverId ,
83- $ storeId ,
84- $ storeName ,
85- $ presenceConfiguration
8670 );
8771 }
8872
8973 public function write (ByteBufferWriter $ out ) : void {
90- CommonTypes::putString ($ out , $ this ->experienceId );
74+ CommonTypes::putUUID ($ out , $ this ->experienceId );
9175 CommonTypes::putString ($ out , $ this ->experienceName );
92- CommonTypes::putString ($ out , $ this ->experienceWorldId );
76+ CommonTypes::putUUID ($ out , $ this ->experienceWorldId );
9377 CommonTypes::putString ($ out , $ this ->experienceWorldName );
9478 CommonTypes::putString ($ out , $ this ->creatorId );
9579 CommonTypes::putUUID ($ out , $ this ->targetId );
9680 CommonTypes::putString ($ out , $ this ->scenarioId );
9781 CommonTypes::putString ($ out , $ this ->serverId );
98-
99- CommonTypes::putString ($ out , $ this ->storeId );
100- CommonTypes::putString ($ out , $ this ->storeName );
101- CommonTypes::putBool ($ out , $ this ->presenceConfiguration );
10282 }
10383}
0 commit comments