forked from Exiled-Official/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 110
Scp1344Item & move Prefabs #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c111550
Cry
obvEve c2a4cbb
Update Speaker.cs
obvEve 5d61dc0
Merge branch 'scpsl14' into nameless-cries
obvEve cd75db8
Update Speaker.cs
obvEve c671a78
fix build
obvEve bfc362a
feat: spawn the speaker
BoltonDev 3037561
Merge branch 'scpsl14' into nameless-cries
louis1706 5a43e76
Merge branch 'scpsl14' into nameless-cries
obvEve 75008b2
Update Item.cs
obvEve 881473d
Update Item.cs
obvEve 9482bab
Merge branch 'scpsl14' into nameless-cries
Misaka-ZeroTwo d0c881c
Merge branch 'scpsl14' into nameless-cries
obvEve 69b55e4
fix build
obvEve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| // ----------------------------------------------------------------------- | ||
| // <copyright file="Scp1344.cs" company="ExMod Team"> | ||
| // Copyright (c) ExMod Team. All rights reserved. | ||
| // Licensed under the CC BY-SA 3.0 license. | ||
| // </copyright> | ||
| // ----------------------------------------------------------------------- | ||
|
|
||
| namespace Exiled.API.Features.Items | ||
| { | ||
| using Exiled.API.Interfaces; | ||
| using InventorySystem.Items.Usables.Scp1344; | ||
|
|
||
| /// <summary> | ||
| /// A wrapper class for SCP-1344. | ||
| /// </summary> | ||
| public class Scp1344 : Usable, IWrapper<Scp1344Item> | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="Scp1344"/> class. | ||
| /// </summary> | ||
| /// <param name="itemBase">The item base to wrap.</param> | ||
| public Scp1344(Scp1344Item itemBase) | ||
| : base(itemBase) | ||
| { | ||
| Base = itemBase; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="Scp1344"/> class. | ||
| /// </summary> | ||
| internal Scp1344() | ||
| : this((Scp1344Item)Server.Host.Inventory.CreateItemInstance(new(ItemType.SCP1344, 0), false)) | ||
| { | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets the <see cref="Scp1344"/> base. | ||
| /// </summary> | ||
| public new Scp1344Item Base { get; } | ||
|
|
||
| /// <summary> | ||
| /// Gets a value indicating whether the item is worn. | ||
| /// </summary> | ||
| public bool IsWorn => Base.IsWorn; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the status. | ||
| /// </summary> | ||
| public Scp1344Status Status | ||
| { | ||
| get => Base.Status; | ||
| set => Base.Status = value; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets a value indicating whether it can be started to use. | ||
| /// </summary> | ||
| public bool CanStartUsing => Base.CanStartUsing; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you consider them as nullable maybe add a
nulldefault value?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can add default value yeah, i just copied the method from another toy