public EntityID Duplicate() { EntityID NewCopy = new EntityID(); NewCopy.SerializedVersion = SerializedVersion; NewCopy.ChapterFilename = ChapterFilename; NewCopy.SceneFilename = SceneFilename; NewCopy.DialogueFilename = DialogueFilename; NewCopy.ConversationFilename = ConversationFilename; return NewCopy; }
public virtual IGraphEvent GetEntityForID(EntityID CurrentID) { /* foreach(ConversationBase CurrentConversationBase in Entities) * { * if(CurrentConversationBase.GetFilename() == CurrentID.ConversationFilename) * { * return CurrentConversationBase; * } * }*/ return(null); }
public EntityID Duplicate() { EntityID NewCopy = new EntityID(); NewCopy.SerializedVersion = SerializedVersion; NewCopy.ChapterFilename = ChapterFilename; NewCopy.SceneFilename = SceneFilename; NewCopy.DialogueFilename = DialogueFilename; NewCopy.ConversationFilename = ConversationFilename; return(NewCopy); }
public virtual string EditorGetNodeFullLocationName() { EntityID CurrentID = GenerateEntityIDForEvent(); if (CurrentID != null) { return(CurrentID.ChapterFilename + " - " + CurrentID.SceneFilename + " - " + CurrentID.DialogueFilename); } else { return(""); } }
public bool IsEqual(EntityID Other) { if(Other == null) { return false; } UpdateIfNecessary(); Other.UpdateIfNecessary(); return ChapterFilename == Other.ChapterFilename && SceneFilename == Other.SceneFilename && DialogueFilename == Other.DialogueFilename && ConversationFilename == Other.ConversationFilename; }
public void SerializeEntityID(string Key, ref EntityID Value) { if (Value == null) { Value = new EntityID(); } SerializeInt(Key + "SerializedVersion", ref Value.SerializedVersion); SerializeString(Key + "Chapter", ref Value.ChapterFilename); SerializeString(Key + "Scene", ref Value.SceneFilename); SerializeString(Key + "Dialogue", ref Value.DialogueFilename); SerializeString(Key + "Conversation", ref Value.ConversationFilename); }
public bool IsEqual(EntityID Other) { if (Other == null) { return(false); } UpdateIfNecessary(); Other.UpdateIfNecessary(); return(ChapterFilename == Other.ChapterFilename && SceneFilename == Other.SceneFilename && DialogueFilename == Other.DialogueFilename && ConversationFilename == Other.ConversationFilename); }