public Entity AddView(object newGameObject, RMC.Common.UnityEngineReplacement.Bounds newBounds) { var component = CreateComponent<RMC.Common.Entitas.Components.Render.ViewComponent>(ComponentIds.View); component.gameObject = newGameObject; component.bounds = newBounds; return AddComponent(ComponentIds.View, component); }
public static UnityEngine.Bounds Convert(RMC.Common.UnityEngineReplacement.Bounds rBounds) { return new UnityEngine.Bounds( Convert(rBounds.center), Convert(rBounds.size) ); }
public Entity ReplacePosition(RMC.Common.UnityEngineReplacement.Vector3 newPosition) { var component = CreateComponent<RMC.Common.Entitas.Components.Transform.PositionComponent>(ComponentIds.Position); component.position = newPosition; ReplaceComponent(ComponentIds.Position, component); return this; }
public Entity ReplaceBounds(RMC.Common.UnityEngineReplacement.Bounds newBounds) { var component = CreateComponent<RMC.EntitasCoverShooter.Entitas.Components.GameState.BoundsComponent>(ComponentIds.Bounds); component.bounds = newBounds; ReplaceComponent(ComponentIds.Bounds, component); return this; }
public Entity AddRotation(RMC.Common.UnityEngineReplacement.Vector3 newRotation, bool newUseTween) { var component = CreateComponent<RMC.Common.Entitas.Components.Transform.Rotation>(ComponentIds.Rotation); component.rotation = newRotation; component.useTween = newUseTween; return AddComponent(ComponentIds.Rotation, component); }
public Entity ReplacePaddle(RMC.EntitasPong.Entitas.Components.PaddleComponent.PaddleType newPaddleType) { var component = CreateComponent<RMC.EntitasPong.Entitas.Components.PaddleComponent>(ComponentIds.Paddle); component.paddleType = newPaddleType; ReplaceComponent(ComponentIds.Paddle, component); return this; }
public Entity ReplaceVelocity(RMC.Common.UnityEngineReplacement.Vector3 newVelocity) { var component = CreateComponent<RMC.Common.Entitas.Components.Transform.VelocityComponent>(ComponentIds.Velocity); component.velocity = newVelocity; ReplaceComponent(ComponentIds.Velocity, component); return this; }
// ------------------ Constants and statics // ------------------ Events // ------------------ Serialized fields and properties // ------------------ Non-serialized fields // ------------------ Methods public static UnityEngine.Vector3 Convert(RMC.Common.UnityEngineReplacement.Vector3 rVector3) { return new UnityEngine.Vector3( rVector3.x, rVector3.y, rVector3.z ); }
public Entity AddInput(RMC.Common.Entitas.Components.Input.InputComponent.InputType newInputType, RMC.Common.UnityEngineReplacement.KeyCode newInputKeyCode, RMC.Common.UnityEngineReplacement.Vector2 newInputAxis) { var component = CreateComponent<RMC.Common.Entitas.Components.Input.InputComponent>(ComponentIds.Input); component.inputType = newInputType; component.inputKeyCode = newInputKeyCode; component.inputAxis = newInputAxis; return AddComponent(ComponentIds.Input, component); }
public Entity AddCollision(object newLocalGameObject, object newOtherGameObject, RMC.Common.Entitas.Components.Collision.CollisionComponent.CollisionType newCollisionType) { var component = CreateComponent<RMC.Common.Entitas.Components.Collision.CollisionComponent>(ComponentIds.Collision); component.localGameObject = newLocalGameObject; component.otherGameObject = newOtherGameObject; component.collisionType = newCollisionType; return AddComponent(ComponentIds.Collision, component); }
public Entity ReplaceInput(RMC.Common.Entitas.Components.Input.InputComponent.InputType newInputType, RMC.Common.UnityEngineReplacement.KeyCode newInputKeyCode, RMC.Common.UnityEngineReplacement.Vector2 newInputAxis, RMC.Common.UnityEngineReplacement.Vector2 newInputPointerPosition) { var component = CreateComponent<RMC.Common.Entitas.Components.Input.InputComponent>(ComponentIds.Input); component.inputType = newInputType; component.inputKeyCode = newInputKeyCode; component.inputAxis = newInputAxis; component.inputPointerPosition = newInputPointerPosition; ReplaceComponent(ComponentIds.Input, component); return this; }
static NMEAParser() { RMCSentence = new RMC(); GGASentence = new GGA(); GSASentence = new GSA(); GSVSentence = new GSV[4]; VTGSentence = new VTG(); HDTSentence = new HDT(); GLLSentence = new GLL(); lockGGA = new Object(); lockGSA = new Object(); lockRMC = new Object(); lockGSV = new Object(); lockVTG = new Object(); lockHDT = new Object(); lockGLL = new Object(); }
public Entity AddFriction(RMC.Common.UnityEngineReplacement.Vector3 newFriction) { var component = CreateComponent<RMC.Common.Entitas.Components.Transform.FrictionComponent>(ComponentIds.Friction); component.friction = newFriction; return AddComponent(ComponentIds.Friction, component); }
public Entity AddPaddle(RMC.EntitasPong.Entitas.Components.PaddleComponent.PaddleType newPaddleType) { var component = CreateComponent<RMC.EntitasPong.Entitas.Components.PaddleComponent>(ComponentIds.Paddle); component.paddleType = newPaddleType; return AddComponent(ComponentIds.Paddle, component); }
public Entity AddBounds(RMC.Common.UnityEngineReplacement.Bounds newBounds) { var component = CreateComponent<RMC.EntitasPong.Entitas.Components.GameState.BoundsComponent>(ComponentIds.Bounds); component.bounds = newBounds; return AddComponent(ComponentIds.Bounds, component); }
///<summary> /// Returns all repetitions of Room Coverage Type/Amount (IN2-28). ///</summary> public RMC[] GetRoomCoverageTypeAmount() { RMC[] ret = null; try { IType[] t = this.GetField(28); ret = new RMC[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (RMC)t[i]; } } catch (HL7Exception he) { HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value. This is a bug.", he); throw new System.Exception("An unexpected error ocurred", he); } catch (System.Exception cce) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value. This is a bug.", cce); throw new System.Exception("An unexpected error ocurred", cce); } return ret; }