Table of Contents

Class GameAction

Namespace
Playnite.SDK.Models
Assembly
Playnite.SDK.dll

Represents executable game action.

public class GameAction : ObservableObject, INotifyPropertyChanged, IEquatable<GameAction>
Inheritance
GameAction
Implements
Inherited Members

Properties

AdditionalArguments

Gets or sets additional executable arguments used for Emulator action type.

public string AdditionalArguments { get; set; }

Property Value

string

Arguments

Gets or sets executable arguments for File type tasks.

public string Arguments { get; set; }

Property Value

string

EmulatorId

Gets or sets emulator id for Emulator action type execution.

public Guid EmulatorId { get; set; }

Property Value

Guid

EmulatorProfileId

Gets or sets emulator profile id for Emulator action type execution.

public string EmulatorProfileId { get; set; }

Property Value

string

IsPlayAction

Gets or sets value indicating whether an action is play action.

public bool IsPlayAction { get; set; }

Property Value

bool

Name

Gets or sets action name.

public string Name { get; set; }

Property Value

string

OverrideDefaultArgs

Gets or sets value indicating whether emulator arguments should be completely overwritten with action arguments. Applies only to Emulator action type.

public bool OverrideDefaultArgs { get; set; }

Property Value

bool

Path

Gets or sets executable path for File action type or URL for URL action type.

public string Path { get; set; }

Property Value

string

Script

Gets or sets startup script.

public string Script { get; set; }

Property Value

string

TrackingMode

Gets or sets executable arguments for File type tasks.

public TrackingMode TrackingMode { get; set; }

Property Value

TrackingMode

TrackingPath

Gets or sets executable arguments for File type tasks.

public string TrackingPath { get; set; }

Property Value

string

Type

Gets or sets task type.

public GameActionType Type { get; set; }

Property Value

GameActionType

WorkingDir

Gets or sets working directory for File action type executable.

public string WorkingDir { get; set; }

Property Value

string

Methods

Equals(GameAction)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(GameAction other)

Parameters

other GameAction

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(GameAction, GameAction)

Compares two GameAction objects for equality.

public static bool Equals(GameAction obj1, GameAction obj2)

Parameters

obj1 GameAction
obj2 GameAction

Returns

bool

GetCopy()

public GameAction GetCopy()

Returns

GameAction

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.