bevy-jam-6/.vscode/bevy.code-snippets
RobertoMaurizzi 495556500f
Some checks are pending
CI / Format (push) Waiting to run
CI / Docs (push) Waiting to run
CI / Clippy lints (push) Waiting to run
CI / Bevy lints (push) Waiting to run
CI / Tests (push) Waiting to run
CI / Check web (push) Waiting to run
first committ, still fighting with... a lot! 😅
2025-07-06 22:14:17 +08:00

68 lines
No EOL
1.7 KiB
Text

{
"Bevy: New top-level function Plugin": {
"scope": "rust",
"prefix": "plugin",
"body": [
"use bevy::prelude::*;",
"",
"pub(super) fn plugin(app: &mut App) {",
"\t$0",
"}"
]
},
"Bevy: New Component": {
"scope": "rust",
"prefix": "component",
"body": [
"#[derive(Component, Reflect, Debug)]",
"#[reflect(Component)]",
"struct $1;"
]
},
"Bevy: New Resource": {
"scope": "rust",
"prefix": "resource",
"body": [
"#[derive(Resource, Reflect, Debug, Default)]",
"#[reflect(Resource)]",
"struct $1;"
]
},
"Bevy: New Event": {
"scope": "rust",
"prefix": "event",
"body": [
"#[derive(Event, Debug)]",
"struct $1;"
]
},
"Bevy: New SystemSet": {
"scope": "rust",
"prefix": "systemset",
"body": [
"#[derive(SystemSet, Copy, Clone, Eq, PartialEq, Hash, Debug)]",
"enum $1 {",
"\t$0",
"}"
]
},
"Bevy: New Schedule": {
"scope": "rust",
"prefix": "schedule",
"body": [
"#[derive(ScheduleLabel, Copy, Clone, Eq, PartialEq, Hash, Debug)]",
"struct $1;"
]
},
"Bevy: New States": {
"scope": "rust",
"prefix": "states",
"body": [
"#[derive(States, Copy, Clone, Eq, PartialEq, Hash, Debug, Default)]",
"enum $1 {",
"\t#[default]",
"\t$0",
"}"
]
}
}