-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pointed to feature branch in protocol and built it in the SDK to generate the new classes * Added proto-squad suggested approach to player freeze. Original or this one will be deleted after testing and choosing one. * rebuild proto component with new optional params for testing * updated protocol * Updated protocol * updated protocol to remove disableCamera property * Updated protocol to point to latest. Added MapPin component ID to protocol-buffer-generation non-exposed list. Rebuilt proto classes. Added test for serialization of InputModifier component * Formatting cleanup * Prettier pass * Test to fix lint check * Another test fo fix lint errors * add missing test --------- Co-authored-by: Gonzalo DCL <gonzalo@decentraland.org>
- Loading branch information
1 parent
b049f13
commit f652672
Showing
9 changed files
with
107 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { components, Engine } from '../../../packages/@dcl/ecs/src' | ||
import { testComponentSerialization } from './assertion' | ||
|
||
describe('Generated InputModifier ProtoBuf', () => { | ||
it('should serialize/deserialize InputModifier', () => { | ||
const newEngine = Engine() | ||
const InputModifier = components.InputModifier(newEngine) | ||
|
||
testComponentSerialization(InputModifier, { | ||
mode: { | ||
$case: 'standard', | ||
standard: { | ||
disableAll: true, | ||
disableWalk: true, | ||
disableJog: true, | ||
disableRun: true, | ||
disableJump: true, | ||
disableEmote: true | ||
} | ||
} | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Engine } from '../../../packages/@dcl/ecs/src' | ||
import { MapPinSchema } from '../../../packages/@dcl/ecs/src/components/generated/MapPin.gen' | ||
import { testComponentSerialization } from './assertion' | ||
|
||
describe('Generated Billboard ProtoBuf', () => { | ||
it('should serialize/deserialize Billboard', () => { | ||
const newEngine = Engine() | ||
const MapPin = newEngine.defineComponentFromSchema('core::MapPin', MapPinSchema) | ||
|
||
testComponentSerialization(MapPin, { | ||
description: 'casla', | ||
iconSize: 8, | ||
position: { x: 8, y: 8 }, | ||
title: 'boedo', | ||
texture: undefined | ||
}) | ||
}) | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.