actions

package
v0.0.0-...-fa728ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Value IAction
}

func (*Action) UnmarshalXML

func (a *Action) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Action) XML

func (a *Action) XML() string

type AddAsset

type AddAsset struct {
	Filename  string `xml:"FileName,attr"`
	Content   string `xml:"FileContents,attr"`
	Target    string `xml:"TargetComp,attr"`
	TargetDir string `xml:"TargetFolderpath,attr"`
}

func (AddAsset) TagName

func (a AddAsset) TagName() string

type AddConditionalActions

type AddConditionalActions struct {
	*DelayableAction
	Path string `xml:"FilePath,attr"`
}

func (AddConditionalActions) TagName

func (a AddConditionalActions) TagName() string

type AddIRCMessage

type AddIRCMessage struct {
	*DelayableAction
	*TargetableAction
	Author string `xml:"Author,attr"`
	// TODO: un/marshal attachments
	Content string `xml:",chardata"`
}

func (AddIRCMessage) TagName

func (irc AddIRCMessage) TagName() string

type AddMissionToHubServer

type AddMissionToHubServer struct {
	*TargetableAction
	Path       string  `xml:"MissionFilepath,attr"`
	Assignment *string `xml:"AssignmentTag,attr,omitempty"`
}

func (AddMissionToHubServer) TagName

func (am AddMissionToHubServer) TagName() string

type AddThreadToMissionBoard

type AddThreadToMissionBoard struct {
	*TargetableAction
	Path string `xml:"ThreadFilepath,attr"`
}

func (AddThreadToMissionBoard) TagName

func (ad AddThreadToMissionBoard) TagName() string

type AlertIconType

type AlertIconType string
const (
	Mail AlertIconType = "mail"
	IRC  AlertIconType = "irc"
)

type AppendToFile

type AppendToFile struct {
	*DelayableAction
	*TargetableAction
	TargetDir  string `xml:"TargetFolderpath,attr"`
	TargetName string `xml:"TargetFilename,attr"`
	Content    string `xml:",chardata"`
}

func (AppendToFile) TagName

func (a AppendToFile) TagName() string

type CancelScreenBleedEffect

type CancelScreenBleedEffect struct {
	*DelayableAction
}

func (CancelScreenBleedEffect) TagName

func (a CancelScreenBleedEffect) TagName() string

type ChangeAlertIcon

type ChangeAlertIcon struct {
	*DelayableAction
	Target string        `xml:"Target,attr"`
	Type   AlertIconType `xml:"Type,attr"`
}

func (ChangeAlertIcon) TagName

func (a ChangeAlertIcon) TagName() string

type ChangeIP

type ChangeIP struct {
	*DelayableAction
	*TargetableAction
	NewIP string `xml:"NewIP,attr"`
}

func (ChangeIP) TagName

func (a ChangeIP) TagName() string

type ChangeNetmapSortMethod

type ChangeNetmapSortMethod struct {
	*DelayableAction
	Method NetmapSortMethod `xml:"Method,attr"`
}

type CopyAsset

type CopyAsset struct {
	SourceComputer      string `xml:"SourceComp,attr"`
	SourcePath          string `xml:"SourceFilePath,attr"`
	SourceName          string `xml:"SourceFileName,attr"`
	DestinationComputer string `xml:"DestComp,attr"`
	DestinationPath     string `xml:"DestFilePath,attr"`
}

func (CopyAsset) TagName

func (a CopyAsset) TagName() string

type CrashComputer

type CrashComputer struct {
	*DelayableAction
	*TargetableAction
	Source string `xml:"CrashSource,attr"`
}

func (CrashComputer) TagName

func (c CrashComputer) TagName() string

type DelayableAction

type DelayableAction struct {
	DelayHost *string `xml:"DelayHost,attr,omitempty"`
	Delay     float64 `xml:"Delay,attr"`
}

type DeleteFile

type DeleteFile struct {
	*DelayableAction
	*TargetableAction
	FilePath string `xml:"FilePath,attr"`
	FileName string `xml:"FileName,attr"`
}

func (DeleteFile) TagName

func (a DeleteFile) TagName() string

type GivePlayerUserAccount

type GivePlayerUserAccount struct {
	*DelayableAction
	*TargetableAction
	Username string `xml:"Username,attr"`
}

func (GivePlayerUserAccount) TagName

func (a GivePlayerUserAccount) TagName() string

type HideAllNodes

type HideAllNodes struct {
	*DelayableAction
}

func (HideAllNodes) TagName

func (a HideAllNodes) TagName() string

type HideNode

type HideNode struct {
	*DelayableAction
	*TargetableAction
}

func (HideNode) TagName

func (a HideNode) TagName() string

type IAction

type IAction interface {
	TagName() string
}

type KillExe

type KillExe struct {
	*DelayableAction
	Name string `xml:"ExeName,attr"`
}

func (KillExe) TagName

func (a KillExe) TagName() string

type LaunchHackScript

type LaunchHackScript struct {
	*DelayableAction
	*TargetableAction
	Script       string `xml:"Filepath,attr"`
	Source       string `xml:"SourceComp,attr"`
	RequireLogs  bool   `xml:"RequireLogsOnSource,attr"`
	SourceIntact bool   `xml:"RequireSourceIntact,attr"`
}

func (LaunchHackScript) TagName

func (a LaunchHackScript) TagName() string

type LoadMission

type LoadMission struct {
	Path string `xml:"MissionName,attr"`
}

func (LoadMission) TagName

func (a LoadMission) TagName() string

type NetmapSortMethod

type NetmapSortMethod string
const (
	Scatter      NetmapSortMethod = "scatter"
	Grid         NetmapSortMethod = "grid"
	SequenceGrid NetmapSortMethod = "seqgrid"
	Chaos        NetmapSortMethod = "CHAOS"
)

type RemoveMissionFromHubServer

type RemoveMissionFromHubServer struct {
	*TargetableAction
	Path string `xml:"MissionFilepath,attr"`
}

func (RemoveMissionFromHubServer) TagName

func (rm RemoveMissionFromHubServer) TagName() string

type RunFunction

type RunFunction struct {
	Name  string `xml:"FunctionName,attr"`
	Value string `xml:"FunctionValue,attr"`
}

func (RunFunction) TagName

func (rf RunFunction) TagName() string

type SaveGame

type SaveGame struct {
	*DelayableAction
}

func (SaveGame) TagName

func (a SaveGame) TagName() string

type SetLock

type SetLock struct {
	*DelayableAction
	Module TerminalModule `xml:"Module,attr"`
	Locked bool           `xml:"IsLocked,attr"`
	Hidden bool           `xml:"IsHidden,attr"`
}

func (SetLock) TagName

func (a SetLock) TagName() string

type ShowNode

type ShowNode struct {
	*HideNode
}

func (ShowNode) TagName

func (a ShowNode) TagName() string

type StartScreenBleedEffect

type StartScreenBleedEffect struct {
	*DelayableAction
	AlertTitle     string  `xml:"AlertTitle,attr"`
	CompleteAction string  `xml:"CompleteAction,attr"`
	Duration       float64 `xml:"TotalDurationSeconds,attr"`
}

func (StartScreenBleedEffect) TagName

func (a StartScreenBleedEffect) TagName() string

type SwitchToTheme

type SwitchToTheme struct {
	*DelayableAction
	ThemePath       string  `xml:"ThemePath,attr"`
	FlickerDuration float64 `xml:"FlickerInDuration,attr"`
}

func (SwitchToTheme) TagName

func (a SwitchToTheme) TagName() string

type TargetableAction

type TargetableAction struct {
	Target string `xml:"TargetComp,attr"`
}

type TerminalModule

type TerminalModule string
const (
	Terminal TerminalModule = "terminal"
	Ram      TerminalModule = "ram"
	Netmap   TerminalModule = "netmap"
	Display  TerminalModule = "display"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL