예제 #1
0
        public void ReadFromFile(BinaryReader reader)
        {
            unk0 = reader.ReadUInt32();
            uint count0 = reader.ReadUInt32();
            uint count1 = reader.ReadUInt32();

            speechsituations = new GenericSpeechSituationsItem[count0];

            for (int i = 0; i < count1; i++)
            {
                GenericSpeechSituationsItem item = new GenericSpeechSituationsItem();
                item.SituationID         = reader.ReadUInt64();
                item.Cooldown            = reader.ReadUInt32();
                item.PerActorCooldownMin = reader.ReadUInt32();
                item.PerActorCooldownMax = reader.ReadUInt32();
                item.PerTeamCooldownMin  = reader.ReadUInt32();
                item.PerTeamCooldownMax  = reader.ReadUInt32();
                item.IsForeground        = reader.ReadUInt32();
                item.FNV64InitHash       = reader.ReadUInt64();

                speechsituations[i] = item;
            }

            unk1 = reader.ReadUInt32();
        }
예제 #2
0
        public void SetFromTreeNodes(TreeNode Root)
        {
            SpeechSituations = new GenericSpeechSituationsItem[Root.Nodes.Count];

            for (int i = 0; i < SpeechSituations.Length; i++)
            {
                TreeNode ChildNode = Root.Nodes[i];
                GenericSpeechSituationsItem Entry = (GenericSpeechSituationsItem)ChildNode.Tag;
                SpeechSituations[i] = Entry;
            }
        }