first committ, still fighting with... a lot! 😅
This commit is contained in:
commit
495556500f
74 changed files with 18135 additions and 0 deletions
68
.vscode/bevy.code-snippets
vendored
Normal file
68
.vscode/bevy.code-snippets
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"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",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue