本文整理汇总了C#中ClientEffect类的典型用法代码示例。如果您正苦于以下问题:C# ClientEffect类的具体用法?C# ClientEffect怎么用?C# ClientEffect使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClientEffect类属于命名空间,在下文中一共展示了ClientEffect类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
this.time = Int32.Parse(importObject.reserved[1].Trim());
this.npc_id = Utility.ClientNpcIndex[importObject.reserved[8].Trim()];
}
示例2: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
this.count = Int32.Parse(importObject.reserved[8].Trim());
this.unknown1 = Int32.Parse(importObject.reserved[12].Trim());
}
示例3: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
this.value = Int32.Parse(importObject.reserved[3].Trim());
this.delta = Int32.Parse(importObject.reserved[2].Trim());
}
示例4: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
base.count = Int32.Parse(importObject.reserved[8].Trim());
if (importObject.reserved[7] != null)
this.delta = Int32.Parse(importObject.reserved[7].Trim());
}
示例5: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
this.range = Int32.Parse(importObject.reserved[4].Trim());
// always true for protect effect
base.percent = true;
}
示例6: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
if (importObject.reserved[7] != null)
this.type = (TransformType)Enum.Parse(typeof(TransformType), importObject.reserved[7].Trim(), true);
this.model = Utility.ClientNpcIndex[importObject.reserved[8].Trim()];
}
示例7: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
if (importObject.reserved[5] != null && importObject.reserved[5].Trim() == "1")
this.percent = true;
this.value = Int32.Parse(importObject.reserved[1].Trim());
if (importObject.reserved[0] != null)
this.delta = Int32.Parse(importObject.reserved[0].Trim());
}
示例8: Import
public override void Import(ClientEffect importObject, IEnumerable<FieldInfo> getters)
{
base.Import(importObject, getters);
this.count = Int32.Parse(importObject.reserved[1].Trim());
if (importObject.reserved[0] != null)
this.unknown1 = Int32.Parse(importObject.reserved[0].Trim());
if (importObject.reserved[15] != null)
this.level = Int32.Parse(importObject.reserved[15].Trim());
if (importObject.reserved[17] != null)
this.unknown2 = Int32.Parse(importObject.reserved[17].Trim());
}