本文整理汇总了C#中WorldObject.Orientation方法的典型用法代码示例。如果您正苦于以下问题:C# WorldObject.Orientation方法的具体用法?C# WorldObject.Orientation怎么用?C# WorldObject.Orientation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WorldObject
的用法示例。
在下文中一共展示了WorldObject.Orientation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CapturedWorldObject
internal CapturedWorldObject(WorldObject wo)
{
this.Id = wo.Id;
this.Name = wo.Name;
this.ObjectClass = wo.ObjectClass;
this.Behavior = wo.Behavior;
this.Category = wo.Category;
this.Container = wo.Container;
this.GameDataFlags1 = wo.GameDataFlags1;
this.Icon = wo.Icon;
this.LastIdTime = wo.LastIdTime;
this.PhysicsDataFlags = wo.PhysicsDataFlags;
this.Type = wo.Type;
this.HasIdData = wo.HasIdData;
this._coordinates = wo.Coordinates();
this._orientation = wo.Orientation();
this._offset = wo.Offset();
this._rawCoordinates = wo.RawCoordinates();
var tmpIntList = new List<int>();
for (int i = 0; i < wo.ActiveSpellCount; i++)
{
tmpIntList.Add(wo.ActiveSpell(i));
}
this._activeSpells = General.ListOperations.Capture(tmpIntList).AsReadOnly();
tmpIntList.Clear();
for (int i = 0; i < wo.SpellCount; i++)
{
tmpIntList.Add(wo.Spell(i));
}
this._spells = General.ListOperations.Capture(tmpIntList).AsReadOnly();
foreach (var key in wo.BoolKeys)
_boolValues.Add(key, wo.Values((BoolValueKey)key));
foreach (var key in wo.DoubleKeys)
_doubleValues.Add(key, wo.Values((DoubleValueKey)key));
foreach (var key in wo.LongKeys)
this._longValues.Add(key, wo.Values((LongValueKey)key));
foreach (var key in wo.StringKeys)
_stringValues.Add(key, wo.Values((StringValueKey)key));
}