mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 19:22:08 +00:00
Suggest roles for procedural settings by their class names
- Match ProceduralPart, ProceduralMaterial and ProceduralDecoration in art.arcane.iris.generation.procedural.part
This commit is contained in:
1 parent
9489ffd4ad
commit
fadbcb8bb5
2 files changed
+5
-5
No files matched your search
@@ -32,8 +32,8 @@ describe('suggestionSourceOf', () => {
|
|||||||
it('takes the roles for the settings that name one', () => {
|
it('takes the roles for the settings that name one', () => {
|
||||||
const on = option('on', { kind: 'list', element: { kind: 'text', format: 'PLAIN' }, unique: false })
|
const on = option('on', { kind: 'list', element: { kind: 'text', format: 'PLAIN' }, unique: false })
|
||||||
|
|
||||||
expect(suggestionSourceOf('art.arcane.iris.engine.procedural.part.ProceduralDecoration', on)).toEqual({ from: 'roles' })
|
expect(suggestionSourceOf('art.arcane.iris.generation.procedural.part.ProceduralDecoration', on)).toEqual({ from: 'roles' })
|
||||||
expect(suggestionSourceOf('art.arcane.iris.engine.procedural.part.ProceduralDecoration', option('at', { kind: 'text', format: 'PLAIN' }))).toBeNull()
|
expect(suggestionSourceOf('art.arcane.iris.generation.procedural.part.ProceduralDecoration', option('at', { kind: 'text', format: 'PLAIN' }))).toBeNull()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('takes the elements of a list of references, and nothing for free text', () => {
|
it('takes the elements of a list of references, and nothing for free text', () => {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ export type SuggestionSource = { from: 'reference'; reference: string } | { from
|
|||||||
|
|
||||||
/** Settings that name a role of the object being edited, by the schema type and option (ProceduralPart, ProceduralMaterial and ProceduralDecoration). */
|
/** Settings that name a role of the object being edited, by the schema type and option (ProceduralPart, ProceduralMaterial and ProceduralDecoration). */
|
||||||
const ROLE_OPTIONS: ReadonlySet<string> = new Set([
|
const ROLE_OPTIONS: ReadonlySet<string> = new Set([
|
||||||
'art.arcane.iris.engine.procedural.part.ProceduralPart.role',
|
'art.arcane.iris.generation.procedural.part.ProceduralPart.role',
|
||||||
'art.arcane.iris.engine.procedural.part.ProceduralMaterial.role',
|
'art.arcane.iris.generation.procedural.part.ProceduralMaterial.role',
|
||||||
'art.arcane.iris.engine.procedural.part.ProceduralDecoration.on'
|
'art.arcane.iris.generation.procedural.part.ProceduralDecoration.on'
|
||||||
])
|
])
|
||||||
|
|
||||||
/** A source the server lists, as opposed to the roles, which the studio reads from the nodes. */
|
/** A source the server lists, as opposed to the roles, which the studio reads from the nodes. */
|
||||||
|
|||||||
Reference in new issue
Block a user