@@ -223,7 +223,6 @@ function createBaseAction() {
223223 worldQueryEntities : undefined ,
224224 worldQueryPlayers : undefined ,
225225 worldQueryEntitiesWithin : undefined ,
226- worldQueryViewers : undefined ,
227226 } ;
228227}
229228export const Action = {
@@ -312,9 +311,6 @@ export const Action = {
312311 if ( message . worldQueryEntitiesWithin !== undefined ) {
313312 WorldQueryEntitiesWithinAction . encode ( message . worldQueryEntitiesWithin , writer . uint32 ( 578 ) . fork ( ) ) . join ( ) ;
314313 }
315- if ( message . worldQueryViewers !== undefined ) {
316- WorldQueryViewersAction . encode ( message . worldQueryViewers , writer . uint32 ( 586 ) . fork ( ) ) . join ( ) ;
317- }
318314 return writer ;
319315 } ,
320316 decode ( input , length ) {
@@ -520,13 +516,6 @@ export const Action = {
520516 message . worldQueryEntitiesWithin = WorldQueryEntitiesWithinAction . decode ( reader , reader . uint32 ( ) ) ;
521517 continue ;
522518 }
523- case 73 : {
524- if ( tag !== 586 ) {
525- break ;
526- }
527- message . worldQueryViewers = WorldQueryViewersAction . decode ( reader , reader . uint32 ( ) ) ;
528- continue ;
529- }
530519 }
531520 if ( ( tag & 7 ) === 4 || tag === 0 ) {
532521 break ;
@@ -579,9 +568,6 @@ export const Action = {
579568 worldQueryEntitiesWithin : isSet ( object . worldQueryEntitiesWithin )
580569 ? WorldQueryEntitiesWithinAction . fromJSON ( object . worldQueryEntitiesWithin )
581570 : undefined ,
582- worldQueryViewers : isSet ( object . worldQueryViewers )
583- ? WorldQueryViewersAction . fromJSON ( object . worldQueryViewers )
584- : undefined ,
585571 } ;
586572 } ,
587573 toJSON ( message ) {
@@ -670,9 +656,6 @@ export const Action = {
670656 if ( message . worldQueryEntitiesWithin !== undefined ) {
671657 obj . worldQueryEntitiesWithin = WorldQueryEntitiesWithinAction . toJSON ( message . worldQueryEntitiesWithin ) ;
672658 }
673- if ( message . worldQueryViewers !== undefined ) {
674- obj . worldQueryViewers = WorldQueryViewersAction . toJSON ( message . worldQueryViewers ) ;
675- }
676659 return obj ;
677660 } ,
678661 create ( base ) {
@@ -764,9 +747,6 @@ export const Action = {
764747 ( object . worldQueryEntitiesWithin !== undefined && object . worldQueryEntitiesWithin !== null )
765748 ? WorldQueryEntitiesWithinAction . fromPartial ( object . worldQueryEntitiesWithin )
766749 : undefined ;
767- message . worldQueryViewers = ( object . worldQueryViewers !== undefined && object . worldQueryViewers !== null )
768- ? WorldQueryViewersAction . fromPartial ( object . worldQueryViewers )
769- : undefined ;
770750 return message ;
771751 } ,
772752} ;
@@ -2900,78 +2880,6 @@ export const WorldQueryEntitiesWithinAction = {
29002880 return message ;
29012881 } ,
29022882} ;
2903- function createBaseWorldQueryViewersAction ( ) {
2904- return { world : undefined , position : undefined } ;
2905- }
2906- export const WorldQueryViewersAction = {
2907- encode ( message , writer = new BinaryWriter ( ) ) {
2908- if ( message . world !== undefined ) {
2909- WorldRef . encode ( message . world , writer . uint32 ( 10 ) . fork ( ) ) . join ( ) ;
2910- }
2911- if ( message . position !== undefined ) {
2912- Vec3 . encode ( message . position , writer . uint32 ( 18 ) . fork ( ) ) . join ( ) ;
2913- }
2914- return writer ;
2915- } ,
2916- decode ( input , length ) {
2917- const reader = input instanceof BinaryReader ? input : new BinaryReader ( input ) ;
2918- let end = length === undefined ? reader . len : reader . pos + length ;
2919- const message = createBaseWorldQueryViewersAction ( ) ;
2920- while ( reader . pos < end ) {
2921- const tag = reader . uint32 ( ) ;
2922- switch ( tag >>> 3 ) {
2923- case 1 : {
2924- if ( tag !== 10 ) {
2925- break ;
2926- }
2927- message . world = WorldRef . decode ( reader , reader . uint32 ( ) ) ;
2928- continue ;
2929- }
2930- case 2 : {
2931- if ( tag !== 18 ) {
2932- break ;
2933- }
2934- message . position = Vec3 . decode ( reader , reader . uint32 ( ) ) ;
2935- continue ;
2936- }
2937- }
2938- if ( ( tag & 7 ) === 4 || tag === 0 ) {
2939- break ;
2940- }
2941- reader . skip ( tag & 7 ) ;
2942- }
2943- return message ;
2944- } ,
2945- fromJSON ( object ) {
2946- return {
2947- world : isSet ( object . world ) ? WorldRef . fromJSON ( object . world ) : undefined ,
2948- position : isSet ( object . position ) ? Vec3 . fromJSON ( object . position ) : undefined ,
2949- } ;
2950- } ,
2951- toJSON ( message ) {
2952- const obj = { } ;
2953- if ( message . world !== undefined ) {
2954- obj . world = WorldRef . toJSON ( message . world ) ;
2955- }
2956- if ( message . position !== undefined ) {
2957- obj . position = Vec3 . toJSON ( message . position ) ;
2958- }
2959- return obj ;
2960- } ,
2961- create ( base ) {
2962- return WorldQueryViewersAction . fromPartial ( base ?? { } ) ;
2963- } ,
2964- fromPartial ( object ) {
2965- const message = createBaseWorldQueryViewersAction ( ) ;
2966- message . world = ( object . world !== undefined && object . world !== null )
2967- ? WorldRef . fromPartial ( object . world )
2968- : undefined ;
2969- message . position = ( object . position !== undefined && object . position !== null )
2970- ? Vec3 . fromPartial ( object . position )
2971- : undefined ;
2972- return message ;
2973- } ,
2974- } ;
29752883function createBaseActionStatus ( ) {
29762884 return { ok : false , error : undefined } ;
29772885}
@@ -3269,103 +3177,13 @@ export const WorldPlayersResult = {
32693177 return message ;
32703178 } ,
32713179} ;
3272- function createBaseWorldViewersResult ( ) {
3273- return { world : undefined , position : undefined , viewerUuids : [ ] } ;
3274- }
3275- export const WorldViewersResult = {
3276- encode ( message , writer = new BinaryWriter ( ) ) {
3277- if ( message . world !== undefined ) {
3278- WorldRef . encode ( message . world , writer . uint32 ( 10 ) . fork ( ) ) . join ( ) ;
3279- }
3280- if ( message . position !== undefined ) {
3281- Vec3 . encode ( message . position , writer . uint32 ( 18 ) . fork ( ) ) . join ( ) ;
3282- }
3283- for ( const v of message . viewerUuids ) {
3284- writer . uint32 ( 26 ) . string ( v ) ;
3285- }
3286- return writer ;
3287- } ,
3288- decode ( input , length ) {
3289- const reader = input instanceof BinaryReader ? input : new BinaryReader ( input ) ;
3290- let end = length === undefined ? reader . len : reader . pos + length ;
3291- const message = createBaseWorldViewersResult ( ) ;
3292- while ( reader . pos < end ) {
3293- const tag = reader . uint32 ( ) ;
3294- switch ( tag >>> 3 ) {
3295- case 1 : {
3296- if ( tag !== 10 ) {
3297- break ;
3298- }
3299- message . world = WorldRef . decode ( reader , reader . uint32 ( ) ) ;
3300- continue ;
3301- }
3302- case 2 : {
3303- if ( tag !== 18 ) {
3304- break ;
3305- }
3306- message . position = Vec3 . decode ( reader , reader . uint32 ( ) ) ;
3307- continue ;
3308- }
3309- case 3 : {
3310- if ( tag !== 26 ) {
3311- break ;
3312- }
3313- message . viewerUuids . push ( reader . string ( ) ) ;
3314- continue ;
3315- }
3316- }
3317- if ( ( tag & 7 ) === 4 || tag === 0 ) {
3318- break ;
3319- }
3320- reader . skip ( tag & 7 ) ;
3321- }
3322- return message ;
3323- } ,
3324- fromJSON ( object ) {
3325- return {
3326- world : isSet ( object . world ) ? WorldRef . fromJSON ( object . world ) : undefined ,
3327- position : isSet ( object . position ) ? Vec3 . fromJSON ( object . position ) : undefined ,
3328- viewerUuids : globalThis . Array . isArray ( object ?. viewerUuids )
3329- ? object . viewerUuids . map ( ( e ) => globalThis . String ( e ) )
3330- : [ ] ,
3331- } ;
3332- } ,
3333- toJSON ( message ) {
3334- const obj = { } ;
3335- if ( message . world !== undefined ) {
3336- obj . world = WorldRef . toJSON ( message . world ) ;
3337- }
3338- if ( message . position !== undefined ) {
3339- obj . position = Vec3 . toJSON ( message . position ) ;
3340- }
3341- if ( message . viewerUuids ?. length ) {
3342- obj . viewerUuids = message . viewerUuids ;
3343- }
3344- return obj ;
3345- } ,
3346- create ( base ) {
3347- return WorldViewersResult . fromPartial ( base ?? { } ) ;
3348- } ,
3349- fromPartial ( object ) {
3350- const message = createBaseWorldViewersResult ( ) ;
3351- message . world = ( object . world !== undefined && object . world !== null )
3352- ? WorldRef . fromPartial ( object . world )
3353- : undefined ;
3354- message . position = ( object . position !== undefined && object . position !== null )
3355- ? Vec3 . fromPartial ( object . position )
3356- : undefined ;
3357- message . viewerUuids = object . viewerUuids ?. map ( ( e ) => e ) || [ ] ;
3358- return message ;
3359- } ,
3360- } ;
33613180function createBaseActionResult ( ) {
33623181 return {
33633182 correlationId : "" ,
33643183 status : undefined ,
33653184 worldEntities : undefined ,
33663185 worldPlayers : undefined ,
33673186 worldEntitiesWithin : undefined ,
3368- worldViewers : undefined ,
33693187 } ;
33703188}
33713189export const ActionResult = {
@@ -3385,9 +3203,6 @@ export const ActionResult = {
33853203 if ( message . worldEntitiesWithin !== undefined ) {
33863204 WorldEntitiesWithinResult . encode ( message . worldEntitiesWithin , writer . uint32 ( 98 ) . fork ( ) ) . join ( ) ;
33873205 }
3388- if ( message . worldViewers !== undefined ) {
3389- WorldViewersResult . encode ( message . worldViewers , writer . uint32 ( 106 ) . fork ( ) ) . join ( ) ;
3390- }
33913206 return writer ;
33923207 } ,
33933208 decode ( input , length ) {
@@ -3432,13 +3247,6 @@ export const ActionResult = {
34323247 message . worldEntitiesWithin = WorldEntitiesWithinResult . decode ( reader , reader . uint32 ( ) ) ;
34333248 continue ;
34343249 }
3435- case 13 : {
3436- if ( tag !== 106 ) {
3437- break ;
3438- }
3439- message . worldViewers = WorldViewersResult . decode ( reader , reader . uint32 ( ) ) ;
3440- continue ;
3441- }
34423250 }
34433251 if ( ( tag & 7 ) === 4 || tag === 0 ) {
34443252 break ;
@@ -3456,7 +3264,6 @@ export const ActionResult = {
34563264 worldEntitiesWithin : isSet ( object . worldEntitiesWithin )
34573265 ? WorldEntitiesWithinResult . fromJSON ( object . worldEntitiesWithin )
34583266 : undefined ,
3459- worldViewers : isSet ( object . worldViewers ) ? WorldViewersResult . fromJSON ( object . worldViewers ) : undefined ,
34603267 } ;
34613268 } ,
34623269 toJSON ( message ) {
@@ -3476,9 +3283,6 @@ export const ActionResult = {
34763283 if ( message . worldEntitiesWithin !== undefined ) {
34773284 obj . worldEntitiesWithin = WorldEntitiesWithinResult . toJSON ( message . worldEntitiesWithin ) ;
34783285 }
3479- if ( message . worldViewers !== undefined ) {
3480- obj . worldViewers = WorldViewersResult . toJSON ( message . worldViewers ) ;
3481- }
34823286 return obj ;
34833287 } ,
34843288 create ( base ) {
@@ -3499,9 +3303,6 @@ export const ActionResult = {
34993303 message . worldEntitiesWithin = ( object . worldEntitiesWithin !== undefined && object . worldEntitiesWithin !== null )
35003304 ? WorldEntitiesWithinResult . fromPartial ( object . worldEntitiesWithin )
35013305 : undefined ;
3502- message . worldViewers = ( object . worldViewers !== undefined && object . worldViewers !== null )
3503- ? WorldViewersResult . fromPartial ( object . worldViewers )
3504- : undefined ;
35053306 return message ;
35063307 } ,
35073308} ;
0 commit comments