public TypeToStep ( GameEventType, t ) : EventStep, | ||
t | GameEventType, | |
Résultat | EventStep, |
public EventStep GetCopy(GameEvent gameEvent) { EventStep s = gameEvent.TypeToStep(this.type); s.scroll = this.scroll; s.fold = this.fold; s.next = this.next; s.nextFail = this.nextFail; s.stepEnabled = this.stepEnabled; s.time = this.time; s.intensity = this.intensity; s.speed = this.speed; s.volume = this.volume; s.float1 = this.float1; s.float2 = this.float2; s.float3 = this.float3; s.float4 = this.float4; s.float5 = this.float5; s.float6 = this.float6; s.float7 = this.float7; s.float8 = this.float8; s.actorID = this.actorID; s.posID = this.posID; s.spawnID = this.spawnID; s.min = this.min; s.max = this.max; s.itemID = this.itemID; s.weaponID = this.weaponID; s.armorID = this.armorID; s.number = this.number; s.characterID = this.characterID; s.waypointID = this.waypointID; s.prefabID = this.prefabID; s.skillID = this.skillID; s.audioID = this.audioID; s.formulaID = this.formulaID; s.musicID = this.musicID; s.wait = this.wait; s.useDefault = this.useDefault; s.useDefault2 = this.useDefault2; s.show = this.show; s.show2 = this.show2; s.show3 = this.show3; s.show4 = this.show4; s.show5 = this.show5; s.show6 = this.show6; s.show7 = this.show7; s.showShadow = this.showShadow; s.controller = this.controller; s.interpolate = this.interpolate; s.playMode = this.playMode; s.queueMode = this.queueMode; s.statusOrigin = this.statusOrigin; s.audioRolloffMode = this.audioRolloffMode; s.playType = this.playType; s.rect = this.rect; s.rect2 = this.rect2; s.v2 = this.v2; s.v3 = this.v3; s.v3_2 = this.v3_2; s.v4 = this.v4; s.v4_2 = this.v4_2; s.choiceNext = new int[this.choiceNext.Length]; System.Array.Copy(this.choiceNext, s.choiceNext, this.choiceNext.Length); s.choice = new ArrayList(); for(int i=0; i<this.choice.Count; i++) { string[] str = this.choice[i] as string[]; string[] newStr = new string[str.Length]; System.Array.Copy(str, newStr, str.Length); s.choice.Add(newStr); } s.message = new string[this.message.Length]; System.Array.Copy(this.message, s.message, this.message.Length); s.scene = this.scene; s.key = this.key; s.value = this.value; s.effect = new SkillEffect[this.effect.Length]; System.Array.Copy(this.effect, s.effect, this.effect.Length); s.simpleOperator = this.simpleOperator; s.valueCheck = this.valueCheck; s.pathToChild = this.pathToChild; s.addItem = new bool[this.addItem.Length]; System.Array.Copy(this.addItem, s.addItem, this.addItem.Length); s.itemChoiceType = new ItemDropType[this.itemChoiceType.Length]; System.Array.Copy(this.itemChoiceType, s.itemChoiceType, this.itemChoiceType.Length); s.itemChoice = new int[this.itemChoice.Length]; System.Array.Copy(this.itemChoice, s.itemChoice, this.itemChoice.Length); s.itemChoiceQuantity = new int[this.itemChoiceQuantity.Length]; System.Array.Copy(this.itemChoiceQuantity, s.itemChoiceQuantity, this.itemChoiceQuantity.Length); return s; }