コード例 #1
0
 public static void __hx_ctor_alphatab_model_Section(global::alphatab.model.Section __temp_me85)
 {
     unchecked
     {
         {
         }
     }
 }
コード例 #2
0
ファイル: MasterBar.cs プロジェクト: joshbuhler/RSTabExplorer
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 67859554:
					{
						this.start = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 2027516754:
					{
						this.score = ((global::alphatab.model.Score) (@value) );
						return @value;
					}
					
					
					case 726713937:
					{
						this.volumeAutomation = ((global::alphatab.model.Automation) (@value) );
						return @value;
					}
					
					
					case 288700050:
					{
						this.tempoAutomation = ((global::alphatab.model.Automation) (@value) );
						return @value;
					}
					
					
					case 1574438373:
					{
						this.section = ((global::alphatab.model.Section) (@value) );
						return @value;
					}
					
					
					case 1999551132:
					{
						this.tripletFeel = ((global::alphatab.model.TripletFeel) (@value) );
						return @value;
					}
					
					
					case 1324324830:
					{
						this.timeSignatureNumerator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 46594619:
					{
						this.timeSignatureDenominator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1796997604:
					{
						this.repeatGroup = ((global::alphatab.model.RepeatGroup) (@value) );
						return @value;
					}
					
					
					case 462066548:
					{
						this.repeatCount = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1582764861:
					{
						this.isRepeatStart = ((bool) (@value) );
						return @value;
					}
					
					
					case 875656696:
					{
						this.isDoubleBar = ((bool) (@value) );
						return @value;
					}
					
					
					case 1832144217:
					{
						this.keySignature = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1041537810:
					{
						this.index = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 127983386:
					{
						this.previousMasterBar = ((global::alphatab.model.MasterBar) (@value) );
						return @value;
					}
					
					
					case 344334046:
					{
						this.nextMasterBar = ((global::alphatab.model.MasterBar) (@value) );
						return @value;
					}
					
					
					case 1116545170:
					{
						this.alternateEndings = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
コード例 #3
0
ファイル: MasterBar.cs プロジェクト: mulhaus1/RSTabExplorer
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 67859554:
                {
                    this.start = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 2027516754:
                {
                    this.score = ((global::alphatab.model.Score)(@value));
                    return(@value);
                }


                case 726713937:
                {
                    this.volumeAutomation = ((global::alphatab.model.Automation)(@value));
                    return(@value);
                }


                case 288700050:
                {
                    this.tempoAutomation = ((global::alphatab.model.Automation)(@value));
                    return(@value);
                }


                case 1574438373:
                {
                    this.section = ((global::alphatab.model.Section)(@value));
                    return(@value);
                }


                case 1999551132:
                {
                    this.tripletFeel = ((global::alphatab.model.TripletFeel)(@value));
                    return(@value);
                }


                case 1324324830:
                {
                    this.timeSignatureNumerator = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 46594619:
                {
                    this.timeSignatureDenominator = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1796997604:
                {
                    this.repeatGroup = ((global::alphatab.model.RepeatGroup)(@value));
                    return(@value);
                }


                case 462066548:
                {
                    this.repeatCount = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1582764861:
                {
                    this.isRepeatStart = ((bool)(@value));
                    return(@value);
                }


                case 875656696:
                {
                    this.isDoubleBar = ((bool)(@value));
                    return(@value);
                }


                case 1832144217:
                {
                    this.keySignature = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1041537810:
                {
                    this.index = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 127983386:
                {
                    this.previousMasterBar = ((global::alphatab.model.MasterBar)(@value));
                    return(@value);
                }


                case 344334046:
                {
                    this.nextMasterBar = ((global::alphatab.model.MasterBar)(@value));
                    return(@value);
                }


                case 1116545170:
                {
                    this.alternateEndings = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
コード例 #4
0
		public virtual   void readMasterBar()
		{
			unchecked 
			{
				global::alphatab.model.MasterBar previousMasterBar = default(global::alphatab.model.MasterBar);
				if (( this._score.masterBars.length > 0 )) 
				{
					previousMasterBar = ((global::alphatab.model.MasterBar) (this._score.masterBars[( this._score.masterBars.length - 1 )]) );
				}
				
				global::alphatab.model.MasterBar newMasterBar = new global::alphatab.model.MasterBar();
				int flags = this._data.readByte();
				if (( (( flags & 1 )) != 0 )) 
				{
					newMasterBar.timeSignatureNumerator = this._data.readByte();
				}
				 else 
				{
					if (( previousMasterBar != default(global::alphatab.model.MasterBar) )) 
					{
						newMasterBar.timeSignatureNumerator = previousMasterBar.timeSignatureNumerator;
					}
					
				}
				
				if (( (( flags & 2 )) != 0 )) 
				{
					newMasterBar.timeSignatureDenominator = this._data.readByte();
				}
				 else 
				{
					if (( previousMasterBar != default(global::alphatab.model.MasterBar) )) 
					{
						newMasterBar.timeSignatureDenominator = previousMasterBar.timeSignatureDenominator;
					}
					
				}
				
				newMasterBar.isRepeatStart = ( (( flags & 4 )) != 0 );
				if (( (( flags & 8 )) != 0 )) 
				{
					if (( this._versionNumber >= 500 )) 
					{
						newMasterBar.repeatCount = this._data.readByte();
					}
					 else 
					{
						newMasterBar.repeatCount = 1;
					}
					
				}
				
				if (( (( flags & 32 )) != 0 )) 
				{
					global::alphatab.model.Section section = new global::alphatab.model.Section();
					section.text = this.readStringIntByte();
					section.marker = "";
					this.readColor();
					newMasterBar.section = section;
				}
				
				if (( (( flags & 16 )) != 0 )) 
				{
					if (( this._versionNumber < 500 )) 
					{
						global::alphatab.model.MasterBar currentMasterBar = previousMasterBar;
						int existentAlternatives = 0;
						while (( currentMasterBar != default(global::alphatab.model.MasterBar) ))
						{
							if (( ( currentMasterBar.repeatCount > 0 ) && ( currentMasterBar != previousMasterBar ) )) 
							{
								break;
							}
							
							if (currentMasterBar.isRepeatStart) 
							{
								break;
							}
							
							existentAlternatives |= currentMasterBar.alternateEndings;
						}
						
						int repeatAlternative = 0;
						int repeatMask = this._data.readByte();
						{
							int _g = 0;
							while (( _g < 8 ))
							{
								int i = _g++;
								int repeating = ( 1 << i );
								if (( ( repeatMask > i ) && ( (( existentAlternatives & repeating )) == 0 ) )) 
								{
									repeatAlternative |= repeating;
								}
								
							}
							
						}
						
						newMasterBar.alternateEndings = repeatAlternative;
					}
					 else 
					{
						newMasterBar.alternateEndings = this._data.readByte();
					}
					
				}
				
				if (( (( flags & 64 )) != 0 )) 
				{
					newMasterBar.keySignature = this._data.readInt8();
					this._data.readByte();
				}
				 else 
				{
					if (( previousMasterBar != default(global::alphatab.model.MasterBar) )) 
					{
						newMasterBar.keySignature = previousMasterBar.keySignature;
					}
					
				}
				
				if (( ( this._versionNumber >= 500 ) && ( (( flags & 3 )) != 0 ) )) 
				{
					this._data.read(4);
				}
				
				if (( ( this._versionNumber >= 500 ) && ( (( flags & 16 )) == 0 ) )) 
				{
					newMasterBar.alternateEndings = this._data.readByte();
				}
				
				if (( this._versionNumber >= 500 )) 
				{
					int tripletFeel = this._data.readByte();
					switch (tripletFeel)
					{
						case 1:
						{
							newMasterBar.tripletFeel = global::alphatab.model.TripletFeel.Triplet8th;
							break;
						}
						
						
						case 2:
						{
							newMasterBar.tripletFeel = global::alphatab.model.TripletFeel.Triplet16th;
							break;
						}
						
						
					}
					
					this._data.readByte();
				}
				 else 
				{
					newMasterBar.tripletFeel = this._globalTripletFeel;
				}
				
				newMasterBar.isDoubleBar = ( (( flags & 128 )) != 0 );
				this._score.addMasterBar(newMasterBar);
			}
		}