本文整理汇总了C#中GameEvent.TypeToStep方法的典型用法代码示例。如果您正苦于以下问题:C# GameEvent.TypeToStep方法的具体用法?C# GameEvent.TypeToStep怎么用?C# GameEvent.TypeToStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameEvent
的用法示例。
在下文中一共展示了GameEvent.TypeToStep方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCopy
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);
//.........这里部分代码省略.........