Beispiel #1
0
        public EntityID Duplicate()
        {
            EntityID NewCopy = new EntityID();

            NewCopy.SerializedVersion = SerializedVersion;
            NewCopy.ChapterFilename = ChapterFilename;
            NewCopy.SceneFilename = SceneFilename;
            NewCopy.DialogueFilename = DialogueFilename;
            NewCopy.ConversationFilename = ConversationFilename;

            return NewCopy;
        }
Beispiel #2
0
        public virtual IGraphEvent GetEntityForID(EntityID CurrentID)
        {
/*		foreach(ConversationBase CurrentConversationBase in Entities)
 *              {
 *                      if(CurrentConversationBase.GetFilename() == CurrentID.ConversationFilename)
 *                      {
 *                              return CurrentConversationBase;
 *                      }
 *              }*/

            return(null);
        }
Beispiel #3
0
        public EntityID Duplicate()
        {
            EntityID NewCopy = new EntityID();

            NewCopy.SerializedVersion    = SerializedVersion;
            NewCopy.ChapterFilename      = ChapterFilename;
            NewCopy.SceneFilename        = SceneFilename;
            NewCopy.DialogueFilename     = DialogueFilename;
            NewCopy.ConversationFilename = ConversationFilename;

            return(NewCopy);
        }
Beispiel #4
0
        public virtual string EditorGetNodeFullLocationName()
        {
            EntityID CurrentID = GenerateEntityIDForEvent();

            if (CurrentID != null)
            {
                return(CurrentID.ChapterFilename + " - " + CurrentID.SceneFilename + " - " + CurrentID.DialogueFilename);
            }
            else
            {
                return("");
            }
        }
Beispiel #5
0
        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;
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
        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);
        }