本文整理匯總了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);
}