本文整理汇总了C#中IMyCameraController类的典型用法代码示例。如果您正苦于以下问题:C# IMyCameraController类的具体用法?C# IMyCameraController怎么用?C# IMyCameraController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMyCameraController类属于命名空间,在下文中一共展示了IMyCameraController类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DrawHud
void VRage.Game.ModAPI.Interfaces.IMyControllableEntity.DrawHud(IMyCameraController camera, long playerId)
{
if (camera != null)
{
DrawHud(camera, playerId);
}
}
开发者ID:Chrus,项目名称:SpaceEngineers,代码行数:7,代码来源:MyShipController_ModAPI.cs
示例2: OnAssumeControl
void IMyCameraController.OnAssumeControl(IMyCameraController previousCameraController)
{
OnAssumeControl(previousCameraController);
}
开发者ID:ChristianHeinz71,项目名称:SpaceEngineers,代码行数:4,代码来源:MyCharacter.cs
示例3: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
MyHud.Crosshair.Recenter();
if (m_currentWeapon != null)
{
m_currentWeapon.DrawHud(camera, playerId);
}
}
开发者ID:ChristianHeinz71,项目名称:SpaceEngineers,代码行数:9,代码来源:MyCharacter.cs
示例4: Static_CameraAttachedToChanged
void Static_CameraAttachedToChanged(IMyCameraController oldController, IMyCameraController newController)
{
if (MySession.ControlledEntity == this && newController != MyThirdPersonSpectator.Static && newController != this)
{
EndShootAll();
}
UpdateCameraAfterChange();
}
开发者ID:notten,项目名称:SpaceEngineers,代码行数:9,代码来源:MyShipController.cs
示例5: OnReleaseControl
public void OnReleaseControl(IMyCameraController newCameraController)
{
//IsInFirstPersonView = false; //AB: Why this?
}
开发者ID:Furt,项目名称:SpaceEngineers,代码行数:4,代码来源:MyCharacter.cs
示例6: OnReleaseControl
void IMyCameraController.OnReleaseControl(IMyCameraController newCameraController)
{
OnReleaseControl(newCameraController);
}
开发者ID:Krulac,项目名称:SpaceEngineers,代码行数:4,代码来源:MySpectatorCameraController.cs
示例7: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
}
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:4,代码来源:MyControllableSphere.cs
示例8: OnAssumeControl
void IMyCameraController.OnAssumeControl(IMyCameraController previousCameraController)
{
if (!(previousCameraController is MyCameraBlock))
MyGridCameraSystem.PreviousNonCameraBlockController = previousCameraController;
OnAssumeControl(previousCameraController);
}
开发者ID:ales-vilchytski,项目名称:SpaceEngineers,代码行数:7,代码来源:MyCameraBlock.cs
示例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);
}
}
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:13,代码来源:MyCryoChamber.cs
示例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;
}
}
开发者ID:stanhebben,项目名称:SpaceEngineers,代码行数:13,代码来源:MyCharacter.cs
示例11: DrawHud
void VRage.Game.ModAPI.Interfaces.IMyControllableEntity.DrawHud(IMyCameraController entity, long player)
{
if(entity is IMyCameraController)
DrawHud(entity as IMyCameraController, player);
}
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:5,代码来源:MyControllableSphere_ModAPI.cs
示例12: OnAssumeControl
public void OnAssumeControl(IMyCameraController previousCameraController)
{
}
开发者ID:Krulac,项目名称:SpaceEngineers,代码行数:3,代码来源:MySpectatorCameraController.cs
示例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);
}
}
开发者ID:rem02,项目名称:SpaceEngineers,代码行数:32,代码来源:MyShipController.cs
示例14: CameraAttachedToChanged
public void CameraAttachedToChanged(IMyCameraController oldController, IMyCameraController newController)
{
if (oldController == this)
{
MyRenderProxy.UpdateRenderObjectVisibility(Render.RenderObjectIDs[0], true, false);
}
}
开发者ID:ChristianHeinz71,项目名称:SpaceEngineers,代码行数:7,代码来源:MyCryoChamber.cs
示例15: DrawHud
internal void DrawHud(IMyCameraController camera, long playerId)
{
if (m_currentGuns != null)
{
foreach (var gun in m_currentGuns)
{
gun.DrawHud(camera, playerId);
}
}
}
开发者ID:leandro1129,项目名称:SpaceEngineers,代码行数:10,代码来源:MyGridSelectionSystem.cs
示例16: OnReleaseControl
public void OnReleaseControl(IMyCameraController newCameraController)
{
UpdateNearFlag();
if (m_enableFirstPerson)
{
UpdateCockpitModel();
UpdateCockpitGlass();
if (Pilot != null)
Pilot.EnableHead(!Render.NearFlag);
}
}
开发者ID:stanhebben,项目名称:SpaceEngineers,代码行数:12,代码来源:MyCockpit.cs
示例17: DrawHud
public void DrawHud(IMyCameraController camera, long playerId)
{
MyGunStatusEnum status;
CanShoot(MyShootActionEnum.PrimaryAction, playerId, out status);
if (status == MyGunStatusEnum.OK || status == MyGunStatusEnum.Cooldown)
{
var matrix = m_gunBase.GetMuzzleWorldMatrix();
var from = matrix.Translation;
var to = from + 50 * matrix.Forward;
Vector3D target = Vector3D.Zero;
if (MyHudCrosshair.GetTarget(from, to, ref target))
{
float distance = (float)Vector3D.Distance(MySector.MainCamera.Position, target);
MyTransparentGeometry.AddBillboardOriented(
"RedDot",
Vector4.One,
target,
MySector.MainCamera.LeftVector,
MySector.MainCamera.UpVector,
distance / 300.0f);
}
}
}
开发者ID:notten,项目名称:SpaceEngineers,代码行数:26,代码来源:MySmallMissileLauncher.cs
示例18: OnReleaseControl
// ------------------------------------------------------------------------------------------------
public void OnReleaseControl(IMyCameraController newCameraController)
{
TurnLightOff();
}
开发者ID:ChristianHeinz71,项目名称:SpaceEngineers,代码行数:5,代码来源:MySpectatorCameraController.cs
示例19: 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))
{
MyHud.Crosshair.Position = target;
}
}
开发者ID:notten,项目名称:SpaceEngineers,代码行数:13,代码来源:MyShipController.cs
示例20: OnReleaseControl
void IMyCameraController.OnReleaseControl(IMyCameraController newCameraController)
{
OnReleaseControl(newCameraController);
if (Pilot != null && Pilot.InScene)
Pilot.EnableHead(true);
}
开发者ID:Rynchodon,项目名称:SpaceEngineers,代码行数:6,代码来源:MyCockpit.cs
注:本文中的IMyCameraController类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论