Skip to content

Commit

Permalink
feat: block player movement (#215)
Browse files Browse the repository at this point in the history
* Initial proposed structure for new component PBAvatarFreezeMovement

* Added EMOTE value to just block player emotes

* Added missing package

* Added proto-squad suggested approach to player freeze. Orinal or this one will be deleted after testing and choosing one.

* Fixed typo

* test adding optional and default value for StandardMovement

* removed default value since it's not supported on proto3

* Added disable_jog

* Removed avatar_movement_movement component. Renamed player_input_movement component to input_modifier

* Removed option to disable camera, that's out of scope of this component
  • Loading branch information
AlejandroAlvarezMelucciDCL authored Sep 2, 2024
1 parent 6d26c2b commit 227b327
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/decentraland/sdk/components/input_modifier.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";
package decentraland.sdk.components;
import "decentraland/sdk/components/common/id.proto";
option (common.ecs_component_id) = 1078;

message PBInputModifier {
// when a boolean = false (default) the message is ignored and doesn't consume bandwidth
message StandardInput {
optional bool disable_all = 1;
optional bool disable_walk = 2;
optional bool disable_jog = 3;
optional bool disable_run = 4;
optional bool disable_jump = 5;
optional bool disable_emote = 6;
}

oneof mode {
StandardInput standard = 1;
}
}

0 comments on commit 227b327

Please sign in to comment.