public PlaySound(uint ResourceID, uint ID, PlaySound.Flags Flags, int Row, int Column, int Radius, int MaxVolume)
 {
     resourceID = ResourceID;
     id = ID;
     playflags = Flags;
     row = Row;
     column = Column;
     radius = Radius;
     maxVolume = MaxVolume;
 }
Пример #2
0
        public override int ReadFrom(byte[] Buffer, int StartIndex = 0)
        {
            int cursor = StartIndex;

            cursor += base.ReadFrom(Buffer, cursor);
            
            PlayInfo = new PlaySound(Buffer, cursor);
            cursor += PlayInfo.ByteLength;

            return cursor - StartIndex;
        }
Пример #3
0
 public PlayWaveMessage(PlaySound PlayInfo) 
     : base(MessageTypeGameMode.PlayWave)
 {
     this.PlayInfo = PlayInfo;
 }
Пример #4
0
        public override unsafe void ReadFrom(ref byte* Buffer)
        {
            base.ReadFrom(ref Buffer);

            PlayInfo = new PlaySound(ref Buffer);
        }