Class BorgSystem
Inheritance
System.Object
BorgSystem
Assembly: Content.Server.dll
Syntax
public sealed class BorgSystem : SharedBorgSystem
Fields
|
Improve this Doc
View Source
BorgJobId
Declaration
public const string BorgJobId = null
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
BorgActivate(EntityUid, BorgChassisComponent)
Activates a borg when a player occupies it
Declaration
public void BorgActivate(EntityUid uid, BorgChassisComponent component)
Parameters
|
Improve this Doc
View Source
BorgDeactivate(EntityUid, BorgChassisComponent)
Deactivates a borg when a player leaves it.
Declaration
public void BorgDeactivate(EntityUid uid, BorgChassisComponent component)
Parameters
|
Improve this Doc
View Source
CanInsertModule(EntityUid, EntityUid, BorgChassisComponent, BorgModuleComponent, Nullable<EntityUid>)
Checks if a given module can be inserted into a borg
Declaration
public bool CanInsertModule(EntityUid uid, EntityUid module, BorgChassisComponent component = null, BorgModuleComponent moduleComponent = null, EntityUid? user = null)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanPlayerBeBorgged(ICommonSession)
Checks that a player has fulfilled the requirements for the borg job.
If they don't have enough hours, they cannot be placed into a chassis.
Declaration
public bool CanPlayerBeBorgged(ICommonSession session)
Parameters
Type |
Name |
Description |
Robust.Shared.Players.ICommonSession |
session |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DisableAllModules(EntityUid, BorgChassisComponent)
Deactivates all modules currently inside the borg's module container
Declaration
public void DisableAllModules(EntityUid uid, BorgChassisComponent component = null)
Parameters
|
Improve this Doc
View Source
DisableBorgAbilities(EntityUid, BorgChassisComponent)
Deactivates the borg, disabling all of its modules and decreasing its speed.
Declaration
public void DisableBorgAbilities(EntityUid uid, BorgChassisComponent component)
Parameters
|
Improve this Doc
View Source
EnableBorgAbilities(EntityUid, BorgChassisComponent)
Activates the borg, enabling all of its modules.
Declaration
public void EnableBorgAbilities(EntityUid uid, BorgChassisComponent component)
Parameters
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
Overrides
|
Improve this Doc
View Source
InitializeMMI()
Declaration
public void InitializeMMI()
|
Improve this Doc
View Source
InitializeModules()
Declaration
public void InitializeModules()
|
Improve this Doc
View Source
InitializeUI()
Declaration
public void InitializeUI()
|
Improve this Doc
View Source
InstallAllModules(EntityUid, BorgChassisComponent)
Installs and activates all modules currently inside the borg's module container
Declaration
public void InstallAllModules(EntityUid uid, BorgChassisComponent component = null)
Parameters
|
Improve this Doc
View Source
InstallModule(EntityUid, EntityUid, BorgChassisComponent, BorgModuleComponent)
Installs a single module into a borg.
Declaration
public void InstallModule(EntityUid uid, EntityUid module, BorgChassisComponent component, BorgModuleComponent moduleComponent = null)
Parameters
|
Improve this Doc
View Source
OnInserted(EntityUid, BorgChassisComponent, EntInsertedIntoContainerMessage)
Declaration
protected override void OnInserted(EntityUid uid, BorgChassisComponent component, EntInsertedIntoContainerMessage args)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
BorgChassisComponent |
component |
|
Robust.Shared.Containers.EntInsertedIntoContainerMessage |
args |
|
|
Improve this Doc
View Source
OnRemoved(EntityUid, BorgChassisComponent, EntRemovedFromContainerMessage)
Declaration
protected override void OnRemoved(EntityUid uid, BorgChassisComponent component, EntRemovedFromContainerMessage args)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
BorgChassisComponent |
component |
|
Robust.Shared.Containers.EntRemovedFromContainerMessage |
args |
|
|
Improve this Doc
View Source
SelectModule(EntityUid, EntityUid, BorgChassisComponent, SelectableBorgModuleComponent, BorgModuleComponent)
Selects a module, enablind the borg to use its provided abilities.
Declaration
public void SelectModule(EntityUid chassis, EntityUid moduleUid, BorgChassisComponent chassisComp = null, SelectableBorgModuleComponent selectable = null, BorgModuleComponent moduleComp = null)
Parameters
|
Improve this Doc
View Source
UninstallModule(EntityUid, EntityUid, BorgChassisComponent, BorgModuleComponent)
Uninstalls a single module from a borg.
Declaration
public void UninstallModule(EntityUid uid, EntityUid module, BorgChassisComponent component, BorgModuleComponent moduleComponent = null)
Parameters
|
Improve this Doc
View Source
UnselectModule(EntityUid, BorgChassisComponent)
Unselects a module, removing its provided abilities
Declaration
public void UnselectModule(EntityUid chassis, BorgChassisComponent chassisComp = null)
Parameters
|
Improve this Doc
View Source
UpdateUI(EntityUid, BorgChassisComponent)
Declaration
public void UpdateUI(EntityUid uid, BorgChassisComponent component = null)
Parameters