Show / Hide Table of Contents

Class SpaceVillainGame

A Class to handle all the game-logic of the SpaceVillain-game.

Inheritance
System.Object
SpaceVillainGame
Namespace: Content.Server.Arcade.SpaceVillain
Assembly: Content.Server.dll
Syntax
public sealed class SpaceVillainGame : object

Constructors

| Improve this Doc View Source

SpaceVillainGame(EntityUid, SpaceVillainArcadeComponent, SpaceVillainArcadeSystem)

Declaration
public SpaceVillainGame(EntityUid owner, SpaceVillainArcadeComponent arcade, SpaceVillainArcadeSystem arcadeSystem)
Parameters
Type Name Description
EntityUid owner
SpaceVillainArcadeComponent arcade
SpaceVillainArcadeSystem arcadeSystem
| Improve this Doc View Source

SpaceVillainGame(EntityUid, SpaceVillainArcadeComponent, SpaceVillainArcadeSystem, String, String)

Declaration
public SpaceVillainGame(EntityUid owner, SpaceVillainArcadeComponent arcade, SpaceVillainArcadeSystem arcadeSystem, string fightVerb, string enemyName)
Parameters
Type Name Description
EntityUid owner
SpaceVillainArcadeComponent arcade
SpaceVillainArcadeSystem arcadeSystem
System.String fightVerb
System.String enemyName

Fields

| Improve this Doc View Source

PlayerChar

Declaration
public readonly SpaceVillainGame.Fighter PlayerChar
Field Value
Type Description
SpaceVillainGame.Fighter
| Improve this Doc View Source

VillainChar

Declaration
public readonly SpaceVillainGame.Fighter VillainChar
Field Value
Type Description
SpaceVillainGame.Fighter

Properties

| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

ExecutePlayerAction(EntityUid, SharedSpaceVillainArcadeComponent.PlayerAction, SpaceVillainArcadeComponent)

Called by the SpaceVillainArcadeComponent when Userinput is received.

Declaration
public void ExecutePlayerAction(EntityUid uid, SharedSpaceVillainArcadeComponent.PlayerAction action, SpaceVillainArcadeComponent arcade)
Parameters
Type Name Description
EntityUid uid

The action the user picked.

SharedSpaceVillainArcadeComponent.PlayerAction action

The action the user picked.

SpaceVillainArcadeComponent arcade

The action the user picked.

| Improve this Doc View Source

GenerateMetaDataMessage()

Generates a Metadata-message based on the objects values.

Declaration
public SharedSpaceVillainArcadeComponent.SpaceVillainArcadeMetaDataUpdateMessage GenerateMetaDataMessage()
Returns
Type Description
SharedSpaceVillainArcadeComponent.SpaceVillainArcadeMetaDataUpdateMessage

A Metadata-message.

| Improve this Doc View Source

GenerateUpdateMessage()

Creates an Update-message based on the objects values.

Declaration
public SharedSpaceVillainArcadeComponent.SpaceVillainArcadeDataUpdateMessage GenerateUpdateMessage()
Returns
Type Description
SharedSpaceVillainArcadeComponent.SpaceVillainArcadeDataUpdateMessage

An Update-Message.

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾