Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { MetaspriteTile, Metasprite, SpriteState, SpriteAnimation, ScriptEventNormalized, TriggerNormalized, ActorNormalized, SceneNormalized, CustomEventNormalized, Variable, ActorPrefabNormalized, TriggerPrefabNormalized, } from "shared/lib/entities/entitiesTypes"; import { ScriptValue } from "shared/lib/scriptValue/types"; export const ClipboardTypeScriptEvents = "gbstudio.scriptevents"; export const ClipboardTypeMetaspriteTiles = "gbstudio.metaspritetiles"; export const ClipboardTypeMetasprites = "gbstudio.metasprites"; export const ClipboardTypeSpriteState = "gbstudio.spritestate"; export const ClipboardTypePaletteIds = "gbstudio.palettes"; export const ClipboardTypeTriggers = " gbstudio.triggers"; export const ClipboardTypeActors = " gbstudio.actors"; export const ClipboardTypeScenes = " gbstudio.scenes"; export const ClipboardTypeScriptValue = " gbstudio.value"; export type NarrowClipboardType<T, N> = T extends { format: N } ? T : never; export type ClipboardMetaspriteTiles = { metaspriteTiles: MetaspriteTile[]; }; export type ClipboardMetasprites = { metasprites: Metasprite[]; metaspriteTiles: MetaspriteTile[]; }; export type ClipboardSpriteState = { spriteState: SpriteState; animations: SpriteAnimation[]; metasprites: Metasprite[]; metaspriteTiles: MetaspriteTile[]; }; export type ClipboardPaletteIds = { paletteIds: string[]; }; export type ClipboardScriptEvents = { scriptEvents: ScriptEventNormalized[]; script: string[]; customEvents: CustomEventNormalized[]; }; export type ClipboardTriggers = { triggers: TriggerNormalized[]; scriptEvents: ScriptEventNormalized[]; variables: Variable[]; customEvents: CustomEventNormalized[]; triggerPrefabs?: TriggerPrefabNormalized[]; }; export type ClipboardActors = { actors: ActorNormalized[]; scriptEvents: ScriptEventNormalized[]; variables: Variable[]; customEvents: CustomEventNormalized[]; actorPrefabs?: ActorPrefabNormalized[]; }; export type ClipboardScenes = { scenes: SceneNormalized[]; actors: ActorNormalized[]; triggers: TriggerNormalized[]; scriptEvents: ScriptEventNormalized[]; variables: Variable[]; customEvents: CustomEventNormalized[]; actorPrefabs?: ActorPrefabNormalized[]; triggerPrefabs?: TriggerPrefabNormalized[]; }; export type ClipboardScriptValue = { value: ScriptValue; }; export type ClipboardType = | { format: typeof ClipboardTypeMetaspriteTiles; data: ClipboardMetaspriteTiles; } | { format: typeof ClipboardTypeMetasprites; data: ClipboardMetasprites; } | { format: typeof ClipboardTypeSpriteState; data: ClipboardSpriteState; } | { format: typeof ClipboardTypePaletteIds; data: ClipboardPaletteIds; } | { format: typeof ClipboardTypeScriptEvents; data: ClipboardScriptEvents; } | { format: typeof ClipboardTypeTriggers; data: ClipboardTriggers; } | { format: typeof ClipboardTypeActors; data: ClipboardActors; } | { format: typeof ClipboardTypeScenes; data: ClipboardScenes; } | { format: typeof ClipboardTypeScriptValue; data: ClipboardScriptValue; }; export type ClipboardFormat = ClipboardType["format"]; export const ClipboardTypes: ClipboardFormat[] = [ ClipboardTypeMetaspriteTiles, ClipboardTypeMetasprites, ClipboardTypeSpriteState, ClipboardTypePaletteIds, ClipboardTypeScriptEvents, ClipboardTypeTriggers, ClipboardTypeActors, ClipboardTypeScenes, ClipboardTypeScriptValue, ]; |