1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 23:25:41 +02:00
This commit is contained in:
syuilo
2026-05-07 14:17:09 +09:00
parent 21fe0f5e67
commit 4324b6def2
6 changed files with 25 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import { coffeeCup } from './objects/coffeeCup.js';
import { colorBox } from './objects/colorBox.js';
import { cuboid } from './objects/cuboid.js';
import { cupNoodle } from './objects/cupNoodle.js';
import { curtain } from './objects/curtain.js';
import { custardPudding } from './objects/custardPudding.js';
import { debugHipoly } from './objects/debugHipoly.js';
import { debugMetal } from './objects/debugMetal.js';
@@ -219,6 +220,7 @@ export const OBJECT_DEFS = [
stanchionPole,
handheldGameConsole,
debugMetal,
curtain,
];
export function getObjectDef(type: string): typeof OBJECT_DEFS[number] {

View File

@@ -0,0 +1,23 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { defineObject } from '../object.js';
export const curtain = defineObject({
id: 'curtain',
name: 'curtain',
options: {
schema: {},
default: {},
},
placement: 'wall',
hasCollisions: false,
hasTexture: true,
createInstance: () => {
return {
interactions: {},
};
},
});