Beispiel #1
0
 public Event(HIRCObject ParentObject)
 {
     Type      = 0;
     Parent    = ParentObject;
     ID        = 0;
     ActionIDs = new List <uint>();
 }
 public NodeBase(HIRCObject ParentObject)
 {
     Parent                   = ParentObject;
     OverrideParentFX         = 0;
     FXChunks                 = new List <FXChunk>();
     UnkByte                  = 0;
     OverrideAttachmentParams = 0;
     OverrideBusID            = 0;
     DirectParentID           = 0;
     NodeFXBitVector          = 0;
     Props                   = new List <Prop>();
     RangedModifiers         = new List <RangedModifier>();
     PositioningVector       = 0;
     Vertices                = new List <Vertex>();
     PlaylistItems           = new List <PlaylistItem>();
     AutomationParams        = new List <AutomationParam>();
     Bits3D                  = 0;
     AttenuationID           = 0;
     PathMode                = 0;
     TransitionTime          = 0;
     AuxBitVector            = 0;
     AuxParams               = new List <uint>();
     ReflectionsAuxBus       = 0;
     AdvSettingsBitVector    = 0;
     VirtualQueueBehavior    = 0;
     MaxInstanceCount        = 0;
     BelowThresholdBehavior  = 0;
     AdvSettingsEndBitVector = 0;
     StateChunks             = new List <StateChunk>();
     rtpc          = new List <RTPC>();
     FeedbackBusID = 0;
 }
 public FxCustom(HIRCObject ParentObject)
 {
     Parent = ParentObject;
     Type   = 0;
     ID     = 0;
     FXBase = new FXBase(Parent);
 }
Beispiel #4
0
 public MusicTrack(HIRCObject ParentObject)
 {
     Type                          = 0;
     Parent                        = ParentObject;
     ID                            = 0;
     MusicFlags                    = 0;
     TrackSources                  = new List <TrackSource>();
     TrackPlaylist                 = new List <TrackItem>();
     SubtrackCount                 = 0;
     SourceID                      = 0;
     AutomationItems               = new List <AutomationItem>();
     NodeBase                      = new NodeBase(ParentObject);
     TrackType                     = 0;
     SwitchGroupType               = 0;
     SwitchGroupID                 = 0;
     DefaultSwitch                 = 0;
     SwitchAssoc                   = new List <uint>();
     SourceFadeTransitionTime      = 0;
     SourceFadeCurve               = 0;
     SourceFadeOffset              = 0;
     TransitionSyncType            = 0;
     TransitionCueFilterHash       = 0;
     DestinationFadeTransitionTime = 0;
     DestinationFadeCurve          = 0;
     DestinationFadeOffset         = 0;
     LookAheadTime                 = 0;
 }
        public BlendContainer(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type = iType;
            uint Length  = br.ReadUInt32();
            long initPos = br.BaseStream.Position;

            ID       = br.ReadUInt32();
            NodeBase = new NodeBase(br, ParentObject);
            ChildIDs = new List <uint>();
            uint numChilds = br.ReadUInt32();

            for (int i = 0; i < numChilds; i++)
            {
                uint Key = br.ReadUInt32();
                ChildIDs.Add(Key);
            }

            Layers = new List <Layer>();
            uint numLayers = br.ReadUInt32();

            for (int i = 0; i < numLayers; i++)
            {
                Layers.Add(new Layer(br));
            }

            long endPos = br.BaseStream.Position;

            Skip = br.ReadBytes((int)(Length - (endPos - initPos)));
        }
Beispiel #6
0
 public FeedbackBus(HIRCObject parentObject)
 {
     parent          = parentObject;
     type            = 0;
     id              = 0;
     feedbackBusData = new Bus(parentObject);
 }
 public AudioDevice(HIRCObject ParentObject)
 {
     Parent = ParentObject;
     Type   = 0;
     ID     = 0;
     FXBase = new FXBase(Parent);
 }
        public SoundSFX(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type = iType;
            uint Length = br.ReadUInt32();

            ID            = br.ReadUInt32();
            PluginType    = br.ReadByte();
            PluginCompany = br.ReadByte();
            br.BaseStream.Seek((int)br.BaseStream.Position - 2, SeekOrigin.Begin);
            PluginID          = br.ReadUInt32();
            StreamType        = br.ReadByte();
            SourceID          = br.ReadUInt32();
            InMemoryMediaSize = br.ReadInt32();
            SourceBits        = br.ReadByte();

            switch (PluginID)
            {
            case 13107202:
            case 7798786:
            case 7864322:
            case 9699330:
            case 6619138:
            case 6684674:
            case 6553602:
                SoundInitialSize = br.ReadInt32();
                break;

            default:
                break;
            }

            NodeBase = new NodeBase(br, ParentObject);
        }
 public ActorMixer(HIRCObject ParentObject)
 {
     Type     = 0;
     ID       = 0;
     NodeBase = new NodeBase(ParentObject);
     ChildIDs = new List <uint>();
 }
 public FeedbackNode(HIRCObject ParentObject)
 {
     Type            = 0;
     ID              = 0;
     FeedbackSources = new List <FeedbackSource>();
     NodeBase        = new NodeBase(ParentObject);
 }
 public AuxiliaryBus(HIRCObject ParentObject)
 {
     Parent  = ParentObject;
     Type    = 0;
     ID      = 0;
     BusData = new Bus(Parent);
 }
 public FxShareSet(HIRCObject ParentObject)
 {
     Parent = ParentObject;
     Type   = 0;
     ID     = 0;
     FXBase = new FXBase(Parent);
 }
        public AuxiliaryBus(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Parent = ParentObject;
            Type   = iType;
            uint Length = br.ReadUInt32();

            ID      = br.ReadUInt32();
            BusData = new Bus(Parent, br, Length);
        }
Beispiel #14
0
        public FeedbackBus(HIRCObject parentObject, BinaryReader br, int iType)
        {
            parent = parentObject;
            type   = iType;
            uint length = br.ReadUInt32();

            id = br.ReadUInt32();
            feedbackBusData = new Bus(parent, br, length);
        }
 public BlendContainer(HIRCObject ParentObject)
 {
     Type     = 0;
     ID       = 0;
     NodeBase = new NodeBase(ParentObject);
     ChildIDs = new List <uint>();
     Layers   = new List <Layer>();
     Skip     = new byte[0];
 }
        public AudioDevice(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type   = iType;
            Parent = ParentObject;
            uint Length = br.ReadUInt32();

            ID     = br.ReadUInt32();
            FXBase = new FXBase(Parent, br);
        }
Beispiel #17
0
 // parameter is allowed class type for visibility
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (parameter != null)
     {
         int        iparameter = int.Parse((string)parameter);
         HIRCObject ho         = (HIRCObject)value;
         return(iparameter == ho.ObjType ? Visibility.Visible : Visibility.Collapsed);
     }
     return(Visibility.Collapsed);
 }
Beispiel #18
0

        
Beispiel #19
0
 public HIRC(BinaryReader br)
 {
     sectionLength = br.ReadUInt32();
     objectCount   = br.ReadUInt32();
     for (int i = 0; i < objectCount; i++)
     {
         HIRCObject newObj = new HIRCObject(br);
         wwiseObjects.Add(newObj);
     }
 }
Beispiel #20
0
 public TransitionDstRule(BinaryReader br, HIRCObject ParentObject)
 {
     Parent                 = ParentObject;
     TransitionTime         = br.ReadUInt32();
     FadeCurve              = br.ReadUInt32();
     FadeOffset             = br.ReadUInt32();
     CueFilterHash          = br.ReadUInt32();
     JumpToID               = br.ReadUInt32();
     EntryType              = br.ReadUInt16();
     PlayPreEntry           = br.ReadByte();
     DestMatchSourceCueName = br.ReadByte();
 }
 public SwitchContainer(HIRCObject ParentObject)
 {
     Type                 = 0;
     ID                   = 0;
     NodeBase             = new NodeBase(ParentObject);
     GroupType            = 0;
     GroupID              = 0;
     DefaultSwitch        = 0;
     ContinuousValidation = 0;
     ChildIDs             = new List <uint>();
     SwitchGroups         = new List <SwitchGroup>();
     SwitchParams         = new List <SwitchParam>();
 }
Beispiel #22
0
        public StateChunk(BinaryReader br, HIRCObject ParentObject)
        {
            Parent   = ParentObject;
            GroupID  = br.ReadUInt32();
            SyncType = br.ReadByte();
            int stateCount = br.ReadUInt16();

            States = new List <State>();

            for (int i = 0; i < stateCount; i++)
            {
                States.Add(new State(br));
            }
        }
        public MusicSequence(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type = iType;
            uint Length = br.ReadUInt32();

            ID         = br.ReadUInt32();
            MusicFlags = br.ReadByte();
            NodeBase   = new NodeBase(br, ParentObject);
            ChildIDs   = new List <uint>();
            uint numChilds = br.ReadUInt32();

            for (int i = 0; i < numChilds; i++)
            {
                uint Key = br.ReadUInt32();
                ChildIDs.Add(Key);
            }

            AKMeterGridPeriod         = br.ReadDouble();
            AKMeterGridOffset         = br.ReadDouble();
            AKMeterTempo              = br.ReadSingle();
            AKMeterTimeSigNumBeatsBar = br.ReadByte();
            AKMeterTimeSigBeatValue   = br.ReadByte();
            AKMeterInfoFlag           = br.ReadByte();
            Stingers = new List <byte[]>();
            uint numStingers = br.ReadUInt32();

            for (int i = 0; i < numStingers; i++)
            {
                Stingers.Add(br.ReadBytes(24));
            }

            Rules = new List <TransitionRule>();
            uint numRules = br.ReadUInt32();

            for (int i = 0; i < numRules; i++)
            {
                Rules.Add(new TransitionRule(br, ParentObject));
            }

            SequencePlaylistItems = new List <SeqPlaylistItem>();
            uint numSequenceItems = br.ReadUInt32();
            int  readCount        = 0;

            while (readCount < numSequenceItems)
            {
                SequencePlaylistItems.Add(new SeqPlaylistItem(br));
                readCount += SequencePlaylistItems[SequencePlaylistItems.Count - 1].GetCount();
            }
        }
        public SoundSFX(HIRCObject Parent)
        {
            Type              = 0;
            ID                = 0;
            PluginType        = 0;
            PluginCompany     = 0;
            PluginID          = 0;
            StreamType        = 0;
            SourceID          = 0;
            InMemoryMediaSize = 0;
            SourceBits        = 0;
            SoundInitialSize  = 0;

            NodeBase = new NodeBase(Parent);
        }
Beispiel #25
0
        public Event(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type   = iType;
            Parent = ParentObject;
            uint Length = br.ReadUInt32();

            ID = br.ReadUInt32();
            int actionsCount = br.ReadInt32();

            ActionIDs = new List <uint>();

            for (uint i = 0; i < actionsCount; i++)
            {
                ActionIDs.Add(br.ReadUInt32());
            }
        }
        public FeedbackNode(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type = iType;
            uint Length = br.ReadUInt32();

            ID = br.ReadUInt32();
            FeedbackSources = new List <FeedbackSource>();
            uint numSources = br.ReadUInt32();

            for (int i = 0; i < numSources; i++)
            {
                FeedbackSources.Add(new FeedbackSource(br));
            }

            NodeBase = new NodeBase(br, ParentObject);
        }
        }                                        //IDs of child HIRC objects
        public ActorMixer(HIRCObject ParentObject, BinaryReader br, int iType)
        {
            Type = iType;
            uint Length = br.ReadUInt32();

            ID       = br.ReadUInt32();
            NodeBase = new NodeBase(br, ParentObject);
            ChildIDs = new List <uint>();
            uint numChilds = br.ReadUInt32();

            for (int i = 0; i < numChilds; i++)
            {
                uint Key = br.ReadUInt32();
                ChildIDs.Add(Key);
            }
        }
Beispiel #28
0
 public MusicSegment(HIRCObject ParentObject)
 {
     Type                      = 0;
     ID                        = 0;
     MusicFlags                = 0;
     NodeBase                  = new NodeBase(ParentObject);
     ChildIDs                  = new List <uint>();
     AKMeterGridPeriod         = 0;
     AKMeterGridOffset         = 0;
     AKMeterTempo              = 0;
     AKMeterTimeSigNumBeatsBar = 0;
     AKMeterTimeSigBeatValue   = 0;
     AKMeterInfoFlag           = 0;
     Stingers                  = new List <byte[]>();
     Duration                  = 0;
     MusicMarkers              = new List <MusicMarker>();
 }
 public MusicSequence(HIRCObject ParentObject)
 {
     Type                      = 0;
     ID                        = 0;
     MusicFlags                = 0;
     NodeBase                  = new NodeBase(ParentObject);
     ChildIDs                  = new List <uint>();
     AKMeterGridPeriod         = 0;
     AKMeterGridOffset         = 0;
     AKMeterTempo              = 0;
     AKMeterTimeSigNumBeatsBar = 0;
     AKMeterTimeSigBeatValue   = 0;
     AKMeterInfoFlag           = 0;
     Stingers                  = new List <byte[]>();
     Rules                     = new List <TransitionRule>();
     SequencePlaylistItems     = new List <SeqPlaylistItem>();
 }
 public RandomContainer(HIRCObject ParentObject)
 {
     Type                 = 0;
     ID                   = 0;
     NodeBase             = new NodeBase(ParentObject);
     LoopCount            = 0;
     LoopModMin           = 0;
     LoopModMax           = 0;
     TransitionTimeBase   = 0;
     TransitionTimeModMin = 0;
     TransitionTimeModMax = 0;
     AvoidRepeatCount     = 0;
     TransitionMode       = 0;
     RandomMode           = 0;
     Mode                 = 0;
     BitVector            = 0;
     ChildIDs             = new List <uint>();
     Playlist             = new List <PlaylistItem>();
 }