本文整理汇总了C#中IMyCameraController类的典型用法代码示例。如果您正苦于以下问题:C# IMyCameraController类的具体用法?C# IMyCameraController怎么用?C# IMyCameraController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IMyCameraController类属于命名空间,在下文中一共展示了IMyCameraController类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawHud
void VRage.Game.ModAPI.Interfaces.IMyControllableEntity.DrawHud(IMyCameraController camera, long playerId)
{
if (camera != null)
{
DrawHud(camera, playerId);
}
}
示例2: OnAssumeControl
void IMyCameraController.OnAssumeControl(IMyCameraController previousCameraController)
{
OnAssumeControl(previousCameraController);
}
示例3: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
MyHud.Crosshair.Recenter();
if (m_currentWeapon != null)
{
m_currentWeapon.DrawHud(camera, playerId);
}
}
示例4: Static_CameraAttachedToChanged
void Static_CameraAttachedToChanged(IMyCameraController oldController, IMyCameraController newController)
{
if (MySession.ControlledEntity == this && newController != MyThirdPersonSpectator.Static && newController != this)
{
EndShootAll();
}
UpdateCameraAfterChange();
}
示例5: OnReleaseControl
public void OnReleaseControl(IMyCameraController newCameraController)
{
//IsInFirstPersonView = false; //AB: Why this?
}
示例6: OnReleaseControl
void IMyCameraController.OnReleaseControl(IMyCameraController newCameraController)
{
OnReleaseControl(newCameraController);
}
示例7: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
}
示例8: OnAssumeControl
void IMyCameraController.OnAssumeControl(IMyCameraController previousCameraController)
{
if (!(previousCameraController is MyCameraBlock))
MyGridCameraSystem.PreviousNonCameraBlockController = previousCameraController;
OnAssumeControl(previousCameraController);
}
示例9: CameraAttachedToChanged
public void CameraAttachedToChanged(IMyCameraController oldController, IMyCameraController newController)
{
if (oldController == this)
{
MyHudCameraOverlay.Enabled = false;
MyRenderProxy.UpdateRenderObjectVisibility(Render.RenderObjectIDs[0], true, false);
}
else if (newController == this)
{
SetOverlay();
MyRenderProxy.UpdateRenderObjectVisibility(Render.RenderObjectIDs[0], false, false);
}
}
示例10: OnAssumeControl
public void OnAssumeControl(IMyCameraController previousCameraController)
{
if (Parent is MyCockpit)
{
var cockpit = Parent as MyCockpit;
if (cockpit.Pilot == this)
{
MySession.Static.SetCameraController(MyCameraControllerEnum.Entity, cockpit);
}
return;
}
}
示例11: DrawHud
void VRage.Game.ModAPI.Interfaces.IMyControllableEntity.DrawHud(IMyCameraController entity, long player)
{
if(entity is IMyCameraController)
DrawHud(entity as IMyCameraController, player);
}
示例12: OnAssumeControl
public void OnAssumeControl(IMyCameraController previousCameraController)
{
}
示例13: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
if (GridSelectionSystem != null)
GridSelectionSystem.DrawHud(camera, playerId);
var to = PositionComp.GetPosition() + 1000 * PositionComp.WorldMatrix.Forward;
Vector2 target = Vector2.Zero;
if (MyHudCrosshair.GetProjectedVector(to, ref target))
{
if (BuildingMode)
target.Y += 0.17f * MyGuiManager.GetHudSize().Y;
MyHud.Crosshair.ChangePosition(target);
}
if (raycaster != null && raycaster.HitBlock != null)
{
MyHud.BlockInfo.Visible = true;
MyHud.BlockInfo.MissingComponentIndex = -1;
MyHud.BlockInfo.BlockName = raycaster.HitBlock.BlockDefinition.DisplayNameText;
MyHud.BlockInfo.BlockIcons = raycaster.HitBlock.BlockDefinition.Icons;
MyHud.BlockInfo.BlockIntegrity = raycaster.HitBlock.Integrity / raycaster.HitBlock.MaxIntegrity;
MyHud.BlockInfo.CriticalIntegrity = raycaster.HitBlock.BlockDefinition.CriticalIntegrityRatio;
MyHud.BlockInfo.CriticalComponentIndex = raycaster.HitBlock.BlockDefinition.CriticalGroup;
MyHud.BlockInfo.OwnershipIntegrity = raycaster.HitBlock.BlockDefinition.OwnershipIntegrityRatio;
MySlimBlock.SetBlockComponents(MyHud.BlockInfo, raycaster.HitBlock);
}
}
示例14: CameraAttachedToChanged
public void CameraAttachedToChanged(IMyCameraController oldController, IMyCameraController newController)
{
if (oldController == this)
{
MyRenderProxy.UpdateRenderObjectVisibility(Render.RenderObjectIDs[0], true, false);
}
}
示例15: DrawHud
internal void DrawHud(IMyCameraController camera, long playerId)
{
if (m_currentGuns != null)
{
foreach (var gun in m_currentGuns)
{
gun.DrawHud(camera, playerId);
}
}
}