本文整理汇总了C#中MinerWars.AppCode.Game.Entities.MyEntity.GetObjectBuilder方法的典型用法代码示例。如果您正苦于以下问题:C# MyEntity.GetObjectBuilder方法的具体用法?C# MyEntity.GetObjectBuilder怎么用?C# MyEntity.GetObjectBuilder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MinerWars.AppCode.Game.Entities.MyEntity
的用法示例。
在下文中一共展示了MyEntity.GetObjectBuilder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MyGuiControlEntityUse
//protected MyGuiControlEntityUse(IMyGuiControlsParent parent, Vector2 size, MyEntity entity)
// : base(parent, Vector2.Zero, size, Vector4.One, new StringBuilder(entity.DisplayName), MyGuiManager.GetHubItemBackground())
//{
// m_entity = entity;
// m_topLeftPosition = -m_size.Value / 2f + new Vector2(0.025f, 0.025f);
// Controls.Add(new MyGuiControlLabel(this, m_topLeftPosition + new Vector2(0.063f, 0.0f), null, GetEntityName(entity), MyGuiConstants.LABEL_TEXT_COLOR, MyGuiConstants.LABEL_TEXT_SCALE, MyGuiDrawAlignEnum.HORISONTAL_LEFT_AND_VERTICAL_CENTER, MyGuiManager.GetFontMinerWarsBlue()));
// LoadControls();
//}
//protected MyGuiControlEntityUse(IMyGuiControlsParent parent, Vector2 size, MyEntity entity, MyTexture2D texture):this(parent,size,entity)
//{
// m_texture = texture;
//}
protected MyGuiControlEntityUse(IMyGuiControlsParent parent, Vector2 size, MyEntity entity)
: this(parent, size, entity, MyGuiObjectBuilderHelpers.GetGuiHelper(entity.GetObjectBuilder(true)).Icon)
{
}
示例2: ObjectBuilderCreate
public ObjectBuilderCreate(MyEntity entity, bool getExactCopy = false)
{
Matrix = entity.WorldMatrix;
ObjectBuilder = entity.GetObjectBuilder(getExactCopy);
}