C# 클래스 EasyVoiceDataAsset, RoverGame

상속: UnityEngine.ScriptableObject
파일 보기 프로젝트 열기: Stumpstump/RoverGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
dataVersion int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddNewLine() 공개 메소드

public AddNewLine ( ) : int
리턴 int

AddNewLine() 공개 메소드

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
리턴 int

ClearClip() 공개 메소드

public ClearClip ( int index, bool markChanged = false ) : void
index int
markChanged bool
리턴 void

DeleteAllLines() 공개 메소드

public DeleteAllLines ( ) : void
리턴 void

DeleteLine() 공개 메소드

public DeleteLine ( int index, bool createEmptyLineOnNoLines = true ) : void
index int
createEmptyLineOnNoLines bool
리턴 void

DuplicateLine() 공개 메소드

public DuplicateLine ( int index ) : void
index int
리턴 void

FirstInitialize() 공개 메소드

public FirstInitialize ( ) : void
리턴 void

GetClip() 공개 메소드

public GetClip ( int index ) : AudioClip
index int
리턴 UnityEngine.AudioClip

GetFileName() 공개 메소드

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

GetFileNameOrDefault() 공개 메소드

public GetFileNameOrDefault ( int index ) : string
index int
리턴 string

GetGroup() 공개 메소드

public GetGroup ( int index ) : string
index int
리턴 string

GetId() 공개 메소드

public GetId ( int index ) : int
index int
리턴 int

GetIssues() 공개 메소드

public GetIssues ( int index ) : LineIssue
index int
리턴 LineIssue

GetOutputStatus() 공개 메소드

public GetOutputStatus ( int index ) : bool
index int
리턴 bool

GetSpeakerName() 공개 메소드

Note: This will not replace any default values
public GetSpeakerName ( int index ) : string
index int
리턴 string

GetSpeakerNameOrSelectDefault() 공개 메소드

public GetSpeakerNameOrSelectDefault ( int index ) : string
index int
리턴 string

GetSpeechText() 공개 메소드

public GetSpeechText ( int index ) : string
index int
리턴 string

GetStatus() 공개 메소드

public GetStatus ( int index ) : byte
index int
리턴 byte

HasIssue() 공개 메소드

public HasIssue ( int index, LineIssue saughtIssues ) : bool
index int
saughtIssues LineIssue
리턴 bool

IntegrityErrorReport() 공개 메소드

public IntegrityErrorReport ( ) : string
리턴 string

LineCount() 공개 메소드

This will return how many lines there are currently stored
public LineCount ( ) : int
리턴 int

MakeSureAllDefaultFileNamesAreUnique() 공개 메소드

public MakeSureAllDefaultFileNamesAreUnique ( ) : void
리턴 void

MoveLine() 공개 메소드

public MoveLine ( int fromIndex, int toIndex ) : void
fromIndex int
toIndex int
리턴 void

MoveLineDown() 공개 메소드

public MoveLineDown ( int index ) : void
index int
리턴 void

MoveLineUp() 공개 메소드

public MoveLineUp ( int index ) : void
index int
리턴 void

SanitizeFileName() 공개 정적인 메소드

public static SanitizeFileName ( string fileName ) : string
fileName string
리턴 string

SetClip() 공개 메소드

public SetClip ( int index, AudioClip newClip, bool markChanged = false ) : void
index int
newClip UnityEngine.AudioClip
markChanged bool
리턴 void

SetDefaultFileName() 공개 메소드

public SetDefaultFileName ( int index ) : void
index int
리턴 void

SetFileName() 공개 메소드

public SetFileName ( int index, string newValue, bool forceVerification, bool markChanged = true ) : void
index int
newValue string
forceVerification bool
markChanged bool
리턴 void

SetGroup() 공개 메소드

public SetGroup ( int index, string newValue ) : void
index int
newValue string
리턴 void

SetId() 공개 메소드

public SetId ( int index, int newValue ) : void
index int
newValue int
리턴 void

SetIssue() 공개 메소드

public SetIssue ( int index, LineIssue chosenIssue, bool newValue ) : void
index int
chosenIssue LineIssue
newValue bool
리턴 void

SetIssues() 공개 메소드

public SetIssues ( int index, LineIssue newIssues ) : void
index int
newIssues LineIssue
리턴 void

SetOutputStatus() 공개 메소드

public SetOutputStatus ( int index, bool newValue ) : void
index int
newValue bool
리턴 void

SetSpeakerName() 공개 메소드

public SetSpeakerName ( int index, string newValue ) : void
index int
newValue string
리턴 void

SetSpeechText() 공개 메소드

public SetSpeechText ( int index, string newValue ) : void
index int
newValue string
리턴 void

SetStatus() 공개 메소드

public SetStatus ( int index, byte newValue ) : void
index int
newValue byte
리턴 void

SortLinesByFileName() 공개 메소드

public SortLinesByFileName ( bool descending ) : void
descending bool
리턴 void

SortLinesBySpeaker() 공개 메소드

public SortLinesBySpeaker ( bool descending, EasyVoiceSettings, settings ) : void
descending bool
settings EasyVoiceSettings,
리턴 void

Upgrade() 공개 메소드

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
리턴 void

VerifyIntegrity() 공개 메소드

public VerifyIntegrity ( ) : bool
리턴 bool

프로퍼티 상세

dataVersion 공개적으로 프로퍼티

public int dataVersion
리턴 int