Skip to content

Commit

Permalink
Update adding-a-simple-bikehorn.md
Browse files Browse the repository at this point in the history
spell aptly correctly
  • Loading branch information
maxpiepenbrink authored Nov 4, 2024
1 parent 6bd23d2 commit dc378df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/en/ss14-by-example/adding-a-simple-bikehorn.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Those helpers can be thought of as handling **client click -> server** and **ser
In the Space Station 14 codebase, Components & EntitySystems alike (along with other classes) go inside folders directly under the `Content.Server`, `Content.Shared`, or `Content.Client` projects. There are folders for `Atmos`, `Botany`, `Research`, `Storage`, and a lot more. If a suitable folder doesn't exist, create one! Never put files directly into the top directory of the project.
```

Under the `Content.Server` project, there's a folder called `Sound`. This folder contains an apty named `Components` folder. That seems like a good place to put our new component (and in fact, this is where the real `EmitSoundOnTriggerComponent` is located). Let's call our version `PlaySoundOnUseComponent`. Note: if you just copy paste this code in, it may not work, as you'll need to import various classes. Your IDE can do this for you.
Under the `Content.Server` project, there's a folder called `Sound`. This folder contains an aptly named `Components` folder. That seems like a good place to put our new component (and in fact, this is where the real `EmitSoundOnTriggerComponent` is located). Let's call our version `PlaySoundOnUseComponent`. Note: if you just copy paste this code in, it may not work, as you'll need to import various classes. Your IDE can do this for you.

Now let's just make the most basic component possible:

Expand Down

0 comments on commit dc378df

Please sign in to comment.