C# Class EasyVoiceDataAsset, RoverGame

Inheritance: UnityEngine.ScriptableObject
Afficher le fichier Open project: Stumpstump/RoverGame Class Usage Examples

Méthodes publiques

Свойство Type Description
dataVersion int

Méthodes publiques

Méthode Description
AddNewLine ( ) : int
AddNewLine ( int givenId, string givenGroup, byte givenStatus, string givenName, string givenText, string givenFileName, LineIssue givenIssues ) : int
ClearClip ( int index, bool markChanged = false ) : void
DeleteAllLines ( ) : void
DeleteLine ( int index, bool createEmptyLineOnNoLines = true ) : void
DuplicateLine ( int index ) : void
FirstInitialize ( ) : void
GetClip ( int index ) : AudioClip
GetFileName ( int index ) : string

NOTE: This will not return a default file name correctly filled, use GetFileNameOrDefault() for that

GetFileNameOrDefault ( int index ) : string
GetGroup ( int index ) : string
GetId ( int index ) : int
GetIssues ( int index ) : LineIssue
GetOutputStatus ( int index ) : bool
GetSpeakerName ( int index ) : string

Note: This will not replace any default values

GetSpeakerNameOrSelectDefault ( int index ) : string
GetSpeechText ( int index ) : string
GetStatus ( int index ) : byte
HasIssue ( int index, LineIssue saughtIssues ) : bool
IntegrityErrorReport ( ) : string
LineCount ( ) : int

This will return how many lines there are currently stored

MakeSureAllDefaultFileNamesAreUnique ( ) : void
MoveLine ( int fromIndex, int toIndex ) : void
MoveLineDown ( int index ) : void
MoveLineUp ( int index ) : void
SanitizeFileName ( string fileName ) : string
SetClip ( int index, AudioClip newClip, bool markChanged = false ) : void
SetDefaultFileName ( int index ) : void
SetFileName ( int index, string newValue, bool forceVerification, bool markChanged = true ) : void
SetGroup ( int index, string newValue ) : void
SetId ( int index, int newValue ) : void
SetIssue ( int index, LineIssue chosenIssue, bool newValue ) : void
SetIssues ( int index, LineIssue newIssues ) : void
SetOutputStatus ( int index, bool newValue ) : void
SetSpeakerName ( int index, string newValue ) : void
SetSpeechText ( int index, string newValue ) : void
SetStatus ( int index, byte newValue ) : void
SortLinesByFileName ( bool descending ) : void
SortLinesBySpeaker ( bool descending, EasyVoiceSettings, settings ) : void
Upgrade ( int newVersion ) : void

This will, if necessary, upgrade the data asset to the given version There is no need to call this manually and Easy Voice will upgrade the asset automatically, when version mismatch is detected

VerifyIntegrity ( ) : bool

Private Methods

Méthode Description
GenerateUniqueId ( int ourIndex, int minId = 1 ) : int

This will run through all lines and return a unique int id

IdExists ( int seekerIndex, int id ) : bool
MakeSureDefaultFileNameIsUnique ( int index ) : void

This makes sure the current DEFAULT file name is unique to all other file names (i.e. ID is unique and non-clashing with manually typed ones)

MakeSureOtherFileNamesAreUnique ( int index ) : void
OnEnable ( ) : void
Swap ( int index, int otherIndex ) : void

Method Details

AddNewLine() public méthode

public AddNewLine ( ) : int
Résultat int

AddNewLine() public méthode

public AddNewLine ( int givenId, string givenGroup, byte givenStatus, string givenName, string givenText, string givenFileName, LineIssue givenIssues ) : int
givenId int
givenGroup string
givenStatus byte
givenName string
givenText string
givenFileName string
givenIssues LineIssue
Résultat int

ClearClip() public méthode

public ClearClip ( int index, bool markChanged = false ) : void
index int
markChanged bool
Résultat void

DeleteAllLines() public méthode

public DeleteAllLines ( ) : void
Résultat void

DeleteLine() public méthode

public DeleteLine ( int index, bool createEmptyLineOnNoLines = true ) : void
index int
createEmptyLineOnNoLines bool
Résultat void

DuplicateLine() public méthode

public DuplicateLine ( int index ) : void
index int
Résultat void

FirstInitialize() public méthode

public FirstInitialize ( ) : void
Résultat void

GetClip() public méthode

public GetClip ( int index ) : AudioClip
index int
Résultat UnityEngine.AudioClip

GetFileName() public méthode

NOTE: This will not return a default file name correctly filled, use GetFileNameOrDefault() for that
public GetFileName ( int index ) : string
index int
Résultat string

GetFileNameOrDefault() public méthode

public GetFileNameOrDefault ( int index ) : string
index int
Résultat string

GetGroup() public méthode

public GetGroup ( int index ) : string
index int
Résultat string

GetId() public méthode

public GetId ( int index ) : int
index int
Résultat int

GetIssues() public méthode

public GetIssues ( int index ) : LineIssue
index int
Résultat LineIssue

GetOutputStatus() public méthode

public GetOutputStatus ( int index ) : bool
index int
Résultat bool

GetSpeakerName() public méthode

Note: This will not replace any default values
public GetSpeakerName ( int index ) : string
index int
Résultat string

GetSpeakerNameOrSelectDefault() public méthode

public GetSpeakerNameOrSelectDefault ( int index ) : string
index int
Résultat string

GetSpeechText() public méthode

public GetSpeechText ( int index ) : string
index int
Résultat string

GetStatus() public méthode

public GetStatus ( int index ) : byte
index int
Résultat byte

HasIssue() public méthode

public HasIssue ( int index, LineIssue saughtIssues ) : bool
index int
saughtIssues LineIssue
Résultat bool

IntegrityErrorReport() public méthode

public IntegrityErrorReport ( ) : string
Résultat string

LineCount() public méthode

This will return how many lines there are currently stored
public LineCount ( ) : int
Résultat int

MakeSureAllDefaultFileNamesAreUnique() public méthode

public MakeSureAllDefaultFileNamesAreUnique ( ) : void
Résultat void

MoveLine() public méthode

public MoveLine ( int fromIndex, int toIndex ) : void
fromIndex int
toIndex int
Résultat void

MoveLineDown() public méthode

public MoveLineDown ( int index ) : void
index int
Résultat void

MoveLineUp() public méthode

public MoveLineUp ( int index ) : void
index int
Résultat void

SanitizeFileName() public static méthode

public static SanitizeFileName ( string fileName ) : string
fileName string
Résultat string

SetClip() public méthode

public SetClip ( int index, AudioClip newClip, bool markChanged = false ) : void
index int
newClip UnityEngine.AudioClip
markChanged bool
Résultat void

SetDefaultFileName() public méthode

public SetDefaultFileName ( int index ) : void
index int
Résultat void

SetFileName() public méthode

public SetFileName ( int index, string newValue, bool forceVerification, bool markChanged = true ) : void
index int
newValue string
forceVerification bool
markChanged bool
Résultat void

SetGroup() public méthode

public SetGroup ( int index, string newValue ) : void
index int
newValue string
Résultat void

SetId() public méthode

public SetId ( int index, int newValue ) : void
index int
newValue int
Résultat void

SetIssue() public méthode

public SetIssue ( int index, LineIssue chosenIssue, bool newValue ) : void
index int
chosenIssue LineIssue
newValue bool
Résultat void

SetIssues() public méthode

public SetIssues ( int index, LineIssue newIssues ) : void
index int
newIssues LineIssue
Résultat void

SetOutputStatus() public méthode

public SetOutputStatus ( int index, bool newValue ) : void
index int
newValue bool
Résultat void

SetSpeakerName() public méthode

public SetSpeakerName ( int index, string newValue ) : void
index int
newValue string
Résultat void

SetSpeechText() public méthode

public SetSpeechText ( int index, string newValue ) : void
index int
newValue string
Résultat void

SetStatus() public méthode

public SetStatus ( int index, byte newValue ) : void
index int
newValue byte
Résultat void

SortLinesByFileName() public méthode

public SortLinesByFileName ( bool descending ) : void
descending bool
Résultat void

SortLinesBySpeaker() public méthode

public SortLinesBySpeaker ( bool descending, EasyVoiceSettings, settings ) : void
descending bool
settings EasyVoiceSettings,
Résultat void

Upgrade() public méthode

This will, if necessary, upgrade the data asset to the given version There is no need to call this manually and Easy Voice will upgrade the asset automatically, when version mismatch is detected
public Upgrade ( int newVersion ) : void
newVersion int
Résultat void

VerifyIntegrity() public méthode

public VerifyIntegrity ( ) : bool
Résultat bool

Property Details

dataVersion public_oe property

public int dataVersion
Résultat int