Esempio n. 1
0
        public void WriteUserDataEntry(ref BrgUserDataEntry dataEntry, bool isParticle)
        {
            this.Write(dataEntry.dataNameLength);
            this.Write(dataEntry.dataType);
            switch (dataEntry.dataType)
            {
            case 1:
                this.Write((Int32)dataEntry.data);
                this.WriteString(dataEntry.dataName, 0);
                break;

            case 2:
                this.Write((Int32)dataEntry.data);
                this.WriteString(dataEntry.dataName, 0);
                break;

            case 3:
                this.Write((Single)dataEntry.data);
                this.WriteString(dataEntry.dataName, 0);
                break;

            default:
                this.Write((Int32)dataEntry.data);
                this.WriteString(dataEntry.dataName, 0);
                break;
            }
        }
 public void WriteUserDataEntry(ref BrgUserDataEntry dataEntry, bool isParticle)
 {
     this.Write(dataEntry.dataNameLength);
     this.Write(dataEntry.dataType);
     switch (dataEntry.dataType)
     {
         case 1:
             this.Write((Int32)dataEntry.data);
             this.WriteString(dataEntry.dataName, 0);
             break;
         case 2:
             this.Write((Int32)dataEntry.data);
             this.WriteString(dataEntry.dataName, 0);
             break;
         case 3:
             this.Write((Single)dataEntry.data);
             this.WriteString(dataEntry.dataName, 0);
             break;
         default:
             this.Write((Int32)dataEntry.data);
             this.WriteString(dataEntry.dataName, 0);
             break;
     }
 }