public virtual global::haxe.zip.Huffman treeMake(global::haxe.ds.IntMap bits, int maxbits, int v, int len) { unchecked { #line 76 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" if ((len > maxbits)) { #line 77 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" throw global::haxe.lang.HaxeException.wrap("Invalid huffman"); } #line 78 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int idx = ((v << 5) | len); if (bits.exists(((int)(idx)))) { #line 80 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" return(global::haxe.zip.Huffman.Found(((int)(global::haxe.lang.Runtime.toInt(bits.@get(((int)(idx)))))))); } #line 81 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" v <<= 1; ++len; #line 83 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" return(global::haxe.zip.Huffman.NeedBit(this.treeMake(bits, maxbits, v, len), this.treeMake(bits, maxbits, (v | 1), len))); } #line default }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 5393365: { this.len = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 105: { this.i = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 109: { this.m = ((global::haxe.ds.IntMap <T>)(global::haxe.ds.IntMap <object> .__hx_cast <T>(((global::haxe.ds.IntMap)(@value))))); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" switch (hash) { case 1337394146: { #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" this.values = ((global::haxe.ds.IntMap <V>)(global::haxe.ds.IntMap <object> .__hx_cast <V>(((global::haxe.ds.IntMap)(@value))))); #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" return(@value); } case 1191633396: { #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" this.keys = ((global::haxe.ds.IntMap <K>)(global::haxe.ds.IntMap <object> .__hx_cast <K>(((global::haxe.ds.IntMap)(@value))))); #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" return(@value); } default: { #line 112 "/opt/haxe/std/haxe/ds/HashMap.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public static void __hx_ctor_haxe_ds_IntMap <T_c>(global::haxe.ds.IntMap <T_c> __temp_me289) { unchecked { __temp_me289.cachedIndex = -1; } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1164670177: { this.scores = ((global::haxe.ds.IntMap <int>)(global::haxe.ds.IntMap <object> .__hx_cast <int>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 2027516754: { this.score = ((global::eval.EvalutionResult)(@value)); return(@value); } case 1214309137: { this.move = ((object)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" switch (hash) { case 1337394146: { #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" this.values = ((global::haxe.ds.IntMap)(@value)); #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" return(@value); } case 1191633396: { #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" this.keys = ((global::haxe.ds.IntMap)(@value)); #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" return(@value); } default: { #line 103 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\HashMap.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public static object __hx_cast <T_c_c>(global::haxe.ds.IntMap me) { unchecked { return(((me != default(global::haxe.ds.IntMap))) ? (me.haxe_ds_IntMap_cast <T_c_c>()) : (default(global::haxe.ds.IntMap))); } }
public static int RemapBlockIds(uint[] block_ids, int length) { global::haxe.ds.IntMap <int> new_id = new global::haxe.ds.IntMap <int>(); int next_id = 0; { int _g1 = 0; while ((_g1 < length)) { int i = _g1++; if ((new_id.exists(((int)(((uint)(((uint[])(block_ids))[i]))))) == false)) { new_id.@set(((int)(((uint)(((uint[])(block_ids))[i])))), next_id); ++next_id; } } } { int _g11 = 0; while ((_g11 < length)) { int i1 = _g11++; ((uint[])(block_ids))[i1] = ((uint)((new_id.@get(((int)(((uint)(((uint[])(block_ids))[i1])))))).@value)); } } return(next_id); }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 108520940: { this.beatEffects = ((global::haxe.ds.StringMap <object>)(global::haxe.ds.StringMap <object> .__hx_cast <object>(((global::haxe.ds.StringMap)(@value))))); return(@value); } case 1091821942: { this.beat = ((global::alphatab.model.Beat)(@value)); return(@value); } case 1881669935: { this._isGrace = ((bool)(@value)); return(@value); } case 1942741029: { this._minNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 1381203243: { this._noteLookup = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 464659330: { this._notes = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value))))); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 947296307: { this.owner = ((global::graph.Graph)(@value)); return(@value); } case 1752910028: { this._datumMap = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 2058594294: { this._slots = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 656559741: { this.nodeId = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1224700491: { this.name = global::haxe.lang.Runtime.toString(@value); return(@value); } case 1292432058: { this.type = global::haxe.lang.Runtime.toString(@value); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public virtual object haxe_ds_IntMap_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::haxe.ds.IntMap <T_c> new_me = new global::haxe.ds.IntMap <T_c>(global::haxe.lang.EmptyObject.EMPTY); global::Array <object> fields = global::Reflect.fields(this); int i = 0; while ((i < fields.length)) { string field = global::haxe.lang.Runtime.toString(fields[i++]); switch (field) { case "vals": { if ((this.vals != null)) { T_c[] __temp_new_arr4 = new T_c[this.vals.Length]; int __temp_i5 = -1; while ((++__temp_i5 < this.vals.Length)) { object __temp_obj6 = ((object)(this.vals[__temp_i5])); if ((__temp_obj6 != null)) { __temp_new_arr4[__temp_i5] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj6); } } new_me.vals = __temp_new_arr4; } else { new_me.vals = null; } break; } default: { global::Reflect.setField(new_me, field, global::Reflect.field(this, field)); break; } } } return(new_me); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" switch (hash) { case 400657953: { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" this.totoal = ((uint)(global::haxe.lang.Runtime.toInt(@value))); #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" return(@value); } case 116: { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" this.t = ((int)(global::haxe.lang.Runtime.toInt(@value))); #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" return(@value); } case 5442204: { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" this.map = ((global::haxe.ds.IntMap)(@value)); #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" return(@value); } case 271957957: { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" this.timer = ((global::haxe.Timer)(@value)); #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" return(@value); } default: { #line 13 "D:\\project\\sangong\\sangong\\src\\utils\\TimerOne.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public virtual double evalFor(global::game.Game game, int punterId) { unchecked { double @value = 0.0; { object mine = ((global::haxe.IMap <int, object>)(game.mines)).iterator(); while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(mine, "hasNext", 407283053, null))) { global::game.Site mine1 = ((global::game.Site)(global::haxe.lang.Runtime.callField(mine, "next", 1224901875, null))); global::Array <object> currentSites = new global::Array <object>(new object[] {}); global::haxe.IMap <int, int> distances = new global::haxe.ds.IntMap <int>(); this.searchRivers(game, mine1, punterId, 0, distances, currentSites); { int _g1 = 1; int _g = (global::eval.Evaluter.MAX_DISTANCE + 1); while ((_g1 < _g)) { int i = _g1++; global::Array <object> nextSites = new global::Array <object>(new object[] {}); { int _g2 = 0; while ((_g2 < currentSites.length)) { global::game.Site site = ((global::game.Site)(currentSites[_g2])); ++_g2; this.searchRivers(game, site, punterId, i, distances, nextSites); } } currentSites = nextSites; } } { object siteId = distances.keys(); while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(siteId, "hasNext", 407283053, null))) { int siteId1 = ((int)(global::haxe.lang.Runtime.toInt(global::haxe.lang.Runtime.callField(siteId, "next", 1224901875, null)))); global::haxe.lang.Null <int> distance = ((global::haxe.lang.Null <int>)(distances.@get(siteId1))); global::haxe.lang.Null <int> score = ((global::haxe.IMap <int, int>)(global::haxe.IMap__Statics_.__hx_cast <int, int>(((global::haxe.IMap)((((global::haxe.IMap <int, object>)(game.scoreDictionary)).@get(mine1.id)).@value))))).@get(siteId1); double aditional = (this.table[(distance).@value] * (score).@value); @value += aditional; } } } } return(@value); } }
public virtual object haxe_ds_IntMap_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::haxe.ds.IntMap <T_c> new_me = new global::haxe.ds.IntMap <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY))); { object __temp_iterator454 = global::haxe.root.Reflect.fields(this).iterator(); while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator454, "hasNext", 407283053, default(global::haxe.root.Array))))) { string field = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(__temp_iterator454, "next", 1224901875, default(global::haxe.root.Array))); switch (field) { case "vals": { { T_c[] __temp_new_arr286 = new T_c[((int)(this.vals.Length))]; int __temp_i287 = -1; while ((++__temp_i287 < this.vals.Length)) { object __temp_obj288 = ((object)(this.vals[__temp_i287])); if (!(global::haxe.lang.Runtime.eq(__temp_obj288, default(T[])))) { __temp_new_arr286[__temp_i287] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj288); } } new_me.vals = __temp_new_arr286; } break; } default: { global::haxe.root.Reflect.setField(new_me, field, ((object)(global::haxe.root.Reflect.field(this, field)))); break; } } } } return(new_me); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1746477760: { this.postNoteSizes = ((global::haxe.ds.IntMap <int>)(global::haxe.ds.IntMap <object> .__hx_cast <int>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 1554593313: { this.onNoteSizes = ((global::haxe.ds.IntMap <int>)(global::haxe.ds.IntMap <object> .__hx_cast <int>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 1617311389: { this.preNoteSizes = ((global::haxe.ds.IntMap <int>)(global::haxe.ds.IntMap <object> .__hx_cast <int>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 2094598290: { this.sizes = ((global::haxe.ds.StringMap <int>)(global::haxe.ds.StringMap <object> .__hx_cast <int>(((global::haxe.ds.StringMap)(@value))))); return(@value); } case 1197946359: { this.fullWidth = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 329786712: { this._registeredAccidentals = ((global::haxe.ds.IntMap <global::alphatab.model.AccidentalType>)(global::haxe.ds.IntMap <object> .__hx_cast <global::alphatab.model.AccidentalType>(((global::haxe.ds.IntMap)(@value))))); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public virtual void Initialize(global::haxe.lang.Null <int> nodeId, string name, string type) { unchecked { if (string.Equals(type, null)) { type = ""; } if (string.Equals(name, null)) { name = ""; } int __temp_nodeId4 = ((!(nodeId.hasValue)) ? (-1) : ((nodeId).@value)); this.nodeId = __temp_nodeId4; this.name = name; this.type = type; this._slots = new global::haxe.ds.IntMap <object>(); this._datumMap = new global::haxe.ds.IntMap <object>(); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 2146610825: { this._stack = ((global::haxe.ds.GenericStack <object>)(global::haxe.ds.GenericStack <object> .__hx_cast <object>(((global::haxe.ds.GenericStack)(@value))))); return(@value); } case 1072540152: { this._relations = ((global::haxe.ds.ObjectMap <object, object>)(global::haxe.ds.ObjectMap <object, object> .__hx_cast <object, object>(((global::haxe.ds.ObjectMap)(@value))))); return(@value); } case 463863666: { this._nodes = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 1946631881: { this.graphId = global::haxe.lang.Runtime.toString(@value); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 448361819: { this._beatLineXPositions = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 302437836: { this._track = ((global::alphatab.model.Track) (@value) ); return @value; } case 1228566710: { this.maxNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 974358180: { this.minNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 2112234752: { this.lastMaxNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 1858026222: { this.lastMinNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 1921156710: { this.firstMaxNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 1666948180: { this.firstMinNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 173283864: { this.maxDuration = ((global::alphatab.model.Duration) (@value) ); return @value; } case 468906571: { this._lastBeat = ((global::alphatab.model.Beat) (@value) ); return @value; } case 810640957: { this.beats = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } case 989275570: { this.voice = ((global::alphatab.model.Voice) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public IntMapKeyIterator(global::haxe.ds.IntMap <T> m) { global::haxe.ds._IntMap.IntMapKeyIterator <object> .__hx_ctor_haxe_ds__IntMap_IntMapKeyIterator <T>(((global::haxe.ds._IntMap.IntMapKeyIterator <T>)(this)), ((global::haxe.ds.IntMap <T>)(m))); }
public static void __hx_ctor_haxe_ds__IntMap_IntMapKeyIterator <T_c>(global::haxe.ds._IntMap.IntMapKeyIterator <T_c> __hx_this, global::haxe.ds.IntMap <T_c> m) { __hx_this.i = 0; __hx_this.m = m; __hx_this.len = m.nBuckets; }
public static object __hx_cast <T_c_c>(global::haxe.ds.IntMap me) { return(((me != null)) ? (me.haxe_ds_IntMap_cast <T_c_c>()) : default(object)); }
public static void solve() { unchecked { global::System.Console.WriteLine(((object)("Solving Day10"))); global::Array <string> _this = global::haxe.lang.StringExt.split(global::solutions.Day10.input, "\r\n"); global::haxe.lang.Function f = ((global::haxe.lang.Function)(new global::haxe.lang.Closure(typeof(global::Std), "parseInt", 1450317436))); global::Array <object> ret = new global::Array <object>(((object[])(new object[_this.length]))); { int _g = 0; int _g1 = _this.length; while ((_g < _g1)) { int i = _g++; { global::haxe.lang.Null <int> val = global::haxe.lang.Null <object> .ofDynamic <int>(f.__hx_invoke1_o(default(double), ((string)(_this.__a[i])))); ret.__a[i] = (val).toDynamic(); } } } global::Array <int> arr = ((global::Array <int>)(global::Array <object> .__hx_cast <int>(((global::Array)(ret))))); global::haxe.ds.IntMap <int> joltageDiffs = new global::haxe.ds.IntMap <int>(); global::Array <int> diffSequence = new global::Array <int>(); arr.sort((((global::solutions.Day10_solve_11__Fun.__hx_current != null)) ? (global::solutions.Day10_solve_11__Fun.__hx_current) : (global::solutions.Day10_solve_11__Fun.__hx_current = ((global::solutions.Day10_solve_11__Fun)(new global::solutions.Day10_solve_11__Fun()))))); int deviceJoltage = (arr[(arr.length - 1)] + 3); { int tmp = arr[0]; { int v = (new global::haxe.lang.Null <int>(((joltageDiffs.@get(tmp)).@value + 1), true)).@value; joltageDiffs.@set(tmp, v); } } diffSequence.push(arr[0]); { int _g2 = 1; int _g3 = arr.length; while ((_g2 < _g3)) { int i1 = _g2++; int diff = (arr[i1] - arr[(i1 - 1)]); { int tmp1 = diff; { int v1 = (new global::haxe.lang.Null <int>(((joltageDiffs.@get(tmp1)).@value + 1), true)).@value; joltageDiffs.@set(tmp1, v1); } } diffSequence.push(diff); } } { int tmp2 = (deviceJoltage - arr[(arr.length - 1)]); { int v2 = (new global::haxe.lang.Null <int>(((joltageDiffs.@get(tmp2)).@value + 1), true)).@value; joltageDiffs.@set(tmp2, v2); } } global::System.Console.WriteLine(((object)(global::haxe.lang.Runtime.concat("a: ", global::haxe.lang.Runtime.toString(((joltageDiffs.@get(1)).@value * (joltageDiffs.@get(3)).@value)))))); global::Array <int> lengthsOfRemovableOnes = new global::Array <int>(); int oneCounter = 0; { int _g4 = 0; int _g5 = diffSequence.length; while ((_g4 < _g5)) { int i2 = _g4++; if ((diffSequence[i2] == 1)) { ++oneCounter; } if ((diffSequence[i2] == 3)) { if ((oneCounter > 1)) { lengthsOfRemovableOnes.push((oneCounter - 1)); } oneCounter = 0; } else if ((((i2 + 1) >= diffSequence.length) && (oneCounter > 1))) { lengthsOfRemovableOnes.push((oneCounter - 1)); } } } double resultB = 1.0; { int _g6 = 0; while ((_g6 < lengthsOfRemovableOnes.length)) { int length = lengthsOfRemovableOnes[_g6]; ++_g6; switch (length) { case 1: { resultB *= ((double)(2)); break; } case 2: { resultB *= ((double)(4)); break; } case 3: { resultB *= ((double)(7)); break; } default: { global::System.Console.WriteLine(((object)("Unhandled length in lengthsOfRemovableOnes"))); break; } } } } global::System.Console.WriteLine(((object)(global::haxe.lang.Runtime.concat("b: ", global::haxe.lang.Runtime.toString(resultB))))); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" switch (hash) { case 1451561102: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.oneByte = ((global::haxe.io.Bytes)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 796168079: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.heardTimder = ((global::haxe.Timer)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 1816119224: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.sPath = global::haxe.lang.Runtime.toString(@value); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 1300511267: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.gamesDLL = ((global::haxe.root.Array)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 938763356: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.handerAndPlayer = ((global::haxe.ds.IntMap)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 401430337: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.roomMap = ((global::haxe.ds.IntMap)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 1205545654: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.roomID = ((uint)(global::haxe.lang.Runtime.toInt(@value))); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } case 1324703024: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" this.webD = ((global::web.proto.WebEventDispatch)(@value)); #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(@value); } default: { #line 54 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx" return(base.__hx_setField(field, hash, @value, handleProperties)); } } } #line default }
public virtual void setupMap(object map) { unchecked { { int _g = 0; global::Array <object> _g1 = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(global::haxe.lang.Runtime.getField(map, "sites", 2094299916, true)))))); while ((_g < _g1.length)) { object data = _g1[_g]; ++_g; global::game.Site site = new global::game.Site(this, ((int)(global::haxe.lang.Runtime.getField_f(data, "id", 23515, true))), ((!(global::haxe.lang.Null <object> .ofDynamic <double>(global::haxe.lang.Runtime.getField(data, "x", 120, true)).hasValue)) ? (global::Math.rand.NextDouble()) : (((double)(global::haxe.lang.Runtime.toDouble(global::haxe.lang.Runtime.getField(data, "x", 120, true)))))), ((!(global::haxe.lang.Null <object> .ofDynamic <double>(global::haxe.lang.Runtime.getField(data, "y", 121, true)).hasValue)) ? (global::Math.rand.NextDouble()) : (((double)(global::haxe.lang.Runtime.toDouble(global::haxe.lang.Runtime.getField(data, "y", 121, true))))))); ((global::haxe.IMap <int, object>)(this.sites)).@set(site.id, site); } } { int _g2 = 0; global::Array <int> _g11 = ((global::Array <int>)(global::Array <object> .__hx_cast <int>(((global::Array)(global::haxe.lang.Runtime.getField(map, "mines", 141062784, true)))))); while ((_g2 < _g11.length)) { int siteId = _g11[_g2]; ++_g2; global::game.Site site1 = ((global::game.Site)((((global::haxe.IMap <int, object>)(this.sites)).@get(siteId)).@value)); site1.isMine = true; ((global::haxe.IMap <int, object>)(this.mines)).@set(siteId, site1); } } int i = 0; { int _g3 = 0; global::Array <object> _g12 = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(global::haxe.lang.Runtime.getField(map, "rivers", 1477328871, true)))))); while ((_g3 < _g12.length)) { object data1 = _g12[_g3]; ++_g3; int id = global::game._RiverId.RiverId_Impl_._new(i); global::game.River river = new global::game.River(this, id, ((int)(global::haxe.lang.Runtime.getField_f(data1, "source", 842117339, true))), ((int)(global::haxe.lang.Runtime.getField_f(data1, "target", 116192081, true)))); ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(((global::haxe.IMap <int, object>)(this.rivers))))))).@set(id, river); ((global::haxe.IMap <int, object>)(((global::game.Site)((((global::haxe.IMap <int, object>)(this.sites)).@get(river.a)).@value)).rivers)).@set((((river.a == river.a)) ? (river.b) : (river.a)), river); ((global::haxe.IMap <int, object>)(((global::game.Site)((((global::haxe.IMap <int, object>)(this.sites)).@get(river.b)).@value)).rivers)).@set((((river.a == river.b)) ? (river.b) : (river.a)), river); ++i; } } this.mineCount = ((global::Array <int>)(global::Array <object> .__hx_cast <int>(((global::Array)(global::haxe.lang.Runtime.getField(map, "mines", 141062784, true)))))).length; this.siteCount = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(global::haxe.lang.Runtime.getField(map, "sites", 2094299916, true)))))).length; this.riverCount = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(global::haxe.lang.Runtime.getField(map, "rivers", 1477328871, true)))))).length; this.maxScore = 0; { object mine = ((global::haxe.IMap <int, object>)(this.mines)).iterator(); while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(mine, "hasNext", 407283053, null))) { global::game.Site mine1 = ((global::game.Site)(global::haxe.lang.Runtime.callField(mine, "next", 1224901875, null))); global::haxe.IMap <int, int> localScores = new global::haxe.ds.IntMap <int>(); ((global::haxe.IMap <int, object>)(this.scoreDictionary)).@set(mine1.id, localScores); global::Array <object> currentSites = new global::Array <object>(new object[] { mine1 }); global::haxe.IMap <int, int> distances = new global::haxe.ds.IntMap <int>(); distances.@set(mine1.id, 0); { int _g13 = 0; int _g4 = this.siteCount; while ((_g13 < _g4)) { int i1 = _g13++; global::Array <object> nextSites = new global::Array <object>(new object[] {}); { int _g21 = 0; while ((_g21 < currentSites.length)) { global::game.Site site2 = ((global::game.Site)(currentSites[_g21])); ++_g21; { object river1 = ((global::haxe.IMap <int, object>)(site2.rivers)).iterator(); while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(river1, "hasNext", 407283053, null))) { global::game.River river2 = ((global::game.River)(global::haxe.lang.Runtime.callField(river1, "next", 1224901875, null))); int another = (((river2.a == site2.id)) ? (river2.b) : (river2.a)); if (!(distances.exists(another))) { { int v = (i1 + 1); distances.@set(another, v); } nextSites.push(((global::game.Site)((((global::haxe.IMap <int, object>)(this.sites)).@get(another)).@value))); } } } } } currentSites = nextSites; } } { object siteId1 = distances.keys(); while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(siteId1, "hasNext", 407283053, null))) { int siteId2 = ((int)(global::haxe.lang.Runtime.toInt(global::haxe.lang.Runtime.callField(siteId1, "next", 1224901875, null)))); global::haxe.lang.Null <int> distance = ((global::haxe.lang.Null <int>)(distances.@get(siteId2))); int score = ((distance).@value * (distance).@value); localScores.@set(siteId2, score); this.maxScore += score; } } } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 207998018: { this.moves = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(@value))))); return(@value); } case 586597902: { this.maxScore = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 740702967: { this.punterCount = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1571143203: { this.riverCount = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1333325768: { this.siteCount = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1682944316: { this.mineCount = ((int)(global::haxe.lang.Runtime.toInt(@value))); return(@value); } case 1350575496: { this.scoreDictionary = ((global::haxe.IMap <int, object>)(global::haxe.IMap__Statics_.__hx_cast <int, object>(((global::haxe.IMap)(@value))))); return(@value); } case 473088699: { this.punters = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 1477328871: { this.rivers = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 141062784: { this.mines = ((global::haxe.IMap <int, object>)(global::haxe.IMap__Statics_.__hx_cast <int, object>(((global::haxe.IMap)(@value))))); return(@value); } case 2094299916: { this.sites = ((global::haxe.IMap <int, object>)(global::haxe.IMap__Statics_.__hx_cast <int, object>(((global::haxe.IMap)(@value))))); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public virtual global::haxe.zip.Huffman make(global::haxe.root.Array lengths, int pos, int nlengths, int maxbits) { unchecked { #line 87 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" global::haxe.root.Array counts = new global::haxe.root.Array(); global::haxe.root.Array tmp = new global::haxe.root.Array(); #line 89 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" if ((maxbits > 32)) { #line 90 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" throw global::haxe.lang.HaxeException.wrap("Invalid huffman"); } #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" { #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g = 0; #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g1 = maxbits; #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" while ((_g < _g1)) { #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int i = _g++; counts.push(0); #line 93 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" tmp.push(0); } } #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" { #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g2 = 0; #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g3 = nlengths; #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" while ((_g2 < _g3)) { #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int i1 = _g2++; int p = ((int)(global::haxe.lang.Runtime.toInt(lengths.__get((i1 + pos))))); #line 97 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" if ((p >= maxbits)) { #line 98 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" throw global::haxe.lang.HaxeException.wrap("Invalid huffman"); } #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" { #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int __temp_arrVal1 = ((int)(global::haxe.lang.Runtime.toInt(counts.__get(p)))); #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int __temp_arrRet2 = __temp_arrVal1++; #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int __temp_expr1 = ((int)(global::haxe.lang.Runtime.toInt(counts.__set(p, __temp_arrVal1)))); #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int __temp_expr2 = __temp_arrRet2; } } } #line 101 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int code = 0; { #line 102 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g4 = 1; #line 102 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g5 = (maxbits - 1); #line 102 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" while ((_g4 < _g5)) { #line 102 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int i2 = _g4++; code = ((code + ((int)(global::haxe.lang.Runtime.toInt(counts.__get(i2))))) << 1); #line 104 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int __temp_expr3 = ((int)(global::haxe.lang.Runtime.toInt(tmp.__set(i2, code)))); } } #line 106 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" global::haxe.ds.IntMap bits = new global::haxe.ds.IntMap(); { #line 107 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g6 = 0; #line 107 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int _g7 = nlengths; #line 107 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" while ((_g6 < _g7)) { #line 107 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int i3 = _g6++; int l = ((int)(global::haxe.lang.Runtime.toInt(lengths.__get((i3 + pos))))); #line 109 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" if ((l != 0)) { #line 110 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" int n = ((int)(global::haxe.lang.Runtime.toInt(tmp.__get((l - 1))))); int __temp_expr4 = ((int)(global::haxe.lang.Runtime.toInt(tmp.__set((l - 1), (n + 1))))); #line 112 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" bits.@set(((int)(((n << 5) | l))), ((object)(i3))); } } } #line 115 "C:\\HaxeToolkit\\haxe\\std\\haxe\\zip\\Huffman.hx" return(this.treeCompress(global::haxe.zip.Huffman.NeedBit(this.treeMake(bits, maxbits, 0, 1), this.treeMake(bits, maxbits, 1, 1)))); } #line default }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 329786712: { this._registeredAccidentals = ((global::haxe.ds.IntMap<global::alphatab.model.AccidentalType>) (global::haxe.ds.IntMap<object>.__hx_cast<global::alphatab.model.AccidentalType>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1692978337: { this.beamingHelper = ((global::alphatab.rendering.utils.BeamingHelper) (@value) ); return @value; } case 1091821942: { this.beat = ((global::alphatab.model.Beat) (@value) ); return @value; } case 108520940: { this.beatEffects = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) ); return @value; } case 186102306: { this.downLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1366752649: { this.upLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1464822705: { this.spacingChanged = ((global::haxe.lang.Function) (@value) ); return @value; } case 1228566710: { this.maxNote = ((object) (@value) ); return @value; } case 974358180: { this.minNote = ((object) (@value) ); return @value; } case 1270934932: { this._tremoloPicking = ((global::alphatab.rendering.Glyph) (@value) ); return @value; } case 1381203243: { this._noteLookup = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 972910470: { this._infos = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public static global::haxe.ds.IntMap fromIntMap(global::haxe.ds.IntMap map) { #line 190 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Map.hx" return((global::haxe.ds.IntMap)(map)); }
public static object @select(global::haxe.root.Array read, global::haxe.root.Array write, global::haxe.root.Array others, object timeout) { unchecked { #line 142 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::haxe.ds.IntMap map = new global::haxe.ds.IntMap(); #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((read != null)) { #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g = 0; #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g < read.length)) { #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s = ((global::sys.net.Socket)(read.__get(_g))); #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g; #line 165 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" map.@set(((int)(s.sock.Handle.ToInt32())), ((object)(s))); } } #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((write != null)) { #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g1 = 0; #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g1 < write.length)) { #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s1 = ((global::sys.net.Socket)(write.__get(_g1))); #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g1; #line 166 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" map.@set(((int)(s1.sock.Handle.ToInt32())), ((object)(s1))); } } #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((others != null)) { #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g2 = 0; #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g2 < others.length)) { #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s2 = ((global::sys.net.Socket)(others.__get(_g2))); #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g2; #line 167 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" map.@set(((int)(s2.sock.Handle.ToInt32())), ((object)(s2))); } } #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Collections.ArrayList a = new global::System.Collections.ArrayList(((int)((((read == null)) ? (0) : (read.length))))); #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((read != null)) { #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g3 = 0; #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g3 < read.length)) { #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s3 = ((global::sys.net.Socket)(read.__get(_g3))); #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g3; #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a.Add(((object)(s3.sock))); } } #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Collections.ArrayList rawRead = a; global::System.Collections.ArrayList a1 = new global::System.Collections.ArrayList(((int)((((write == null)) ? (0) : (write.length))))); if ((write != null)) { #line 171 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g4 = 0; #line 171 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g4 < write.length)) { #line 171 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s4 = ((global::sys.net.Socket)(write.__get(_g4))); #line 171 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g4; #line 171 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a1.Add(((object)(s4.sock))); } } #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Collections.ArrayList rawWrite = a1; #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Collections.ArrayList a2 = new global::System.Collections.ArrayList(((int)((((others == null)) ? (0) : (others.length))))); #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" if ((others != null)) { #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g5 = 0; #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g5 < others.length)) { #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::sys.net.Socket s5 = ((global::sys.net.Socket)(others.__get(_g5))); #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" ++_g5; #line 172 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a2.Add(((object)(s5.sock))); } } #line 170 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Collections.ArrayList rawOthers = a2; #line 173 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int microsec = (((timeout == default(object))) ? (-1) : (((int)((((double)(global::haxe.lang.Runtime.toDouble(timeout))) * ((double)(1000000))))))); global::System.Net.Sockets.Socket.Select(((global::System.Collections.IList)(rawRead)), ((global::System.Collections.IList)(rawWrite)), ((global::System.Collections.IList)(rawOthers)), ((int)(microsec))); #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::haxe.root.Array a3 = new global::haxe.root.Array(new object[] {}); #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" { #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g6 = 0; #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g11 = rawRead.Count; #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g6 < _g11)) { #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int i = _g6++; #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Net.Sockets.Socket s6 = ((global::System.Net.Sockets.Socket)(rawRead[i])); #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a3.push(((global::sys.net.Socket)(map.@get(((int)(s6.Handle.ToInt32())))))); } } #line 177 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::haxe.root.Array tmp = a3; global::haxe.root.Array a4 = new global::haxe.root.Array(new object[] {}); { #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g7 = 0; #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g12 = rawWrite.Count; #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g7 < _g12)) { #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int i1 = _g7++; #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Net.Sockets.Socket s7 = ((global::System.Net.Sockets.Socket)(rawWrite[i1])); #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a4.push(((global::sys.net.Socket)(map.@get(((int)(s7.Handle.ToInt32())))))); } } #line 178 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::haxe.root.Array tmp1 = a4; global::haxe.root.Array a5 = new global::haxe.root.Array(new object[] {}); { #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g8 = 0; #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int _g13 = rawOthers.Count; #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" while ((_g8 < _g13)) { #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" int i2 = _g8++; #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" global::System.Net.Sockets.Socket s8 = ((global::System.Net.Sockets.Socket)(rawOthers[i2])); #line 179 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" a5.push(((global::sys.net.Socket)(map.@get(((int)(s8.Handle.ToInt32())))))); } } #line 176 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\sys\\net\\Socket.hx" return(new global::haxe.lang.DynamicObject(new int[] { 1269254998, 1348037855, 1898155939 }, new object[] { tmp, tmp1, a5 }, new int[] {}, new double[] {})); } #line default }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 448361819: { this._beatLineXPositions = ((global::haxe.ds.IntMap <object>)(global::haxe.ds.IntMap <object> .__hx_cast <object>(((global::haxe.ds.IntMap)(@value))))); return(@value); } case 302437836: { this._track = ((global::alphatab.model.Track)(@value)); return(@value); } case 1228566710: { this.maxNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 974358180: { this.minNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 2112234752: { this.lastMaxNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 1858026222: { this.lastMinNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 1921156710: { this.firstMaxNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 1666948180: { this.firstMinNote = ((global::alphatab.model.Note)(@value)); return(@value); } case 173283864: { this.maxDuration = ((global::alphatab.model.Duration)(@value)); return(@value); } case 468906571: { this._lastBeat = ((global::alphatab.model.Beat)(@value)); return(@value); } case 810640957: { this.beats = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value))))); return(@value); } case 989275570: { this.voice = ((global::alphatab.model.Voice)(@value)); return(@value); } default: { return(base.__hx_setField(field, hash, @value, handleProperties)); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 108520940: { this.beatEffects = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) ); return @value; } case 1091821942: { this.beat = ((global::alphatab.model.Beat) (@value) ); return @value; } case 1881669935: { this._isGrace = ((bool) (@value) ); return @value; } case 1942741029: { this._minNote = ((global::alphatab.model.Note) (@value) ); return @value; } case 1381203243: { this._noteLookup = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 464659330: { this._notes = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1746477760: { this.postNoteSizes = ((global::haxe.ds.IntMap<int>) (global::haxe.ds.IntMap<object>.__hx_cast<int>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 1554593313: { this.onNoteSizes = ((global::haxe.ds.IntMap<int>) (global::haxe.ds.IntMap<object>.__hx_cast<int>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 1617311389: { this.preNoteSizes = ((global::haxe.ds.IntMap<int>) (global::haxe.ds.IntMap<object>.__hx_cast<int>(((global::haxe.ds.IntMap) (@value) ))) ); return @value; } case 2094598290: { this.sizes = ((global::haxe.ds.StringMap<int>) (global::haxe.ds.StringMap<object>.__hx_cast<int>(((global::haxe.ds.StringMap) (@value) ))) ); return @value; } case 1197946359: { this.fullWidth = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }