Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: gltf node #1027

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
"dependencies": {
"@actions/core": "^1.10.0",
"@dcl/protocol": "1.0.0-11599848164.commit-ef74edc",
"@dcl/protocol": "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-12033283336.commit-2ca1798.tgz",
"@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1",
"@dcl/ts-proto": "1.153.0",
"@types/fs-extra": "^9.0.12",
Expand Down
47 changes: 47 additions & 0 deletions packages/@dcl/playground-assets/etc/playground-assets.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ export const componentDefinitionByName: {
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
"core::GltfNode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNode>>;
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
Expand Down Expand Up @@ -1203,6 +1204,9 @@ export const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfCont
// @public (undocumented)
export const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;

// @public (undocumented)
export const GltfNode: LastWriteWinElementSetComponentDefinition<PBGltfNode>;

// @public (undocumented)
export interface GrowOnlyValueSetComponentDefinition<T> extends BaseComponent<T> {
addValue(entity: Entity, val: DeepReadonly<T>): DeepReadonlySet<T>;
Expand Down Expand Up @@ -2346,6 +2350,20 @@ export namespace PBGltfContainerLoadingState {
export function encode(message: PBGltfContainerLoadingState, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export interface PBGltfNode {
gltfContainerEntity: number;
nodePath: string;
}

// @public (undocumented)
export namespace PBGltfNode {
// (undocumented)
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
// (undocumented)
export function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export interface PBInputModifier {
// (undocumented)
Expand Down Expand Up @@ -2889,6 +2907,9 @@ export interface PBTween {
} | {
$case: "scale";
scale: Scale;
} | {
$case: "textureMove";
textureMove: TextureMove;
} | undefined;
playing?: boolean | undefined;
}
Expand Down Expand Up @@ -3891,8 +3912,10 @@ export const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
// @public (undocumented)
export interface Texture {
filterMode?: TextureFilterMode | undefined;
offset?: PBVector2 | undefined;
// (undocumented)
src: string;
tiling?: PBVector2 | undefined;
wrapMode?: TextureWrapMode | undefined;
}

Expand Down Expand Up @@ -3930,6 +3953,30 @@ export interface TextureHelper {
// @public
export type TextureMode = 'nine-slices' | 'center' | 'stretch';

// @public (undocumented)
export interface TextureMove {
// (undocumented)
end: PBVector2 | undefined;
movementType?: TextureMovementType | undefined;
// (undocumented)
start: PBVector2 | undefined;
}

// @public (undocumented)
export namespace TextureMove {
// (undocumented)
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMove;
// (undocumented)
export function encode(message: TextureMove, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export const enum TextureMovementType {
TMT_OFFSET = 0,
// (undocumented)
TMT_TILING = 1
}

// @public (undocumented)
export interface TextureUnion {
// (undocumented)
Expand Down