//------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public partial class GameEntity { public MoveComponent move { get { return (MoveComponent)GetComponent(GameComponentsLookup.Move); } } public bool hasMove { get { return HasComponent(GameComponentsLookup.Move); } } public void AddMove(UnityEngine.Transform newTransform, UnityEngine.Transform newTransformViewMain, UnityEngine.Rigidbody newRigidbody, MoveParam newMoveParam, float newJumpTimeNow, bool newIsRight, bool newIsGround, bool newIsGroundLogic, bool newIsAgainstWall, bool newIsCrashToWall, bool newIsFlowing, bool newIsWalk, bool newIsJumpCommand, bool newIsJumpPressed, bool newIsFreeTurn, bool newIsSlide, bool newIsSkillAble, float newMoveSpeedScale, float newTempMoveForceScale, Game.EJumpState newJumpState, UnityEngine.Vector3 newGroundPosition, UnityEngine.Vector3 newCrashWallPosition, UnityEngine.Vector3 newCrashWallNormal, UnityEngine.Vector3 newMoveDir, Game.EMovestepType newStepType, UnityEngine.Vector3 newStepValue, UnityEngine.Vector3 newPosition, UnityEngine.Vector3 newVelocity) { var index = GameComponentsLookup.Move; var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent)); component.Transform = newTransform; component.TransformViewMain = newTransformViewMain; component.Rigidbody = newRigidbody; component.MoveParam = newMoveParam; component.JumpTimeNow = newJumpTimeNow; component.IsRight = newIsRight; component.IsGround = newIsGround; component.IsGroundLogic = newIsGroundLogic; component.IsAgainstWall = newIsAgainstWall; component.IsCrashToWall = newIsCrashToWall; component.IsFlowing = newIsFlowing; component.IsWalk = newIsWalk; component.IsJumpCommand = newIsJumpCommand; component.IsJumpPressed = newIsJumpPressed; component.IsFreeTurn = newIsFreeTurn; component.IsSlide = newIsSlide; component.IsSkillAble = newIsSkillAble; component.MoveSpeedScale = newMoveSpeedScale; component.TempMoveForceScale = newTempMoveForceScale; component.JumpState = newJumpState; component.GroundPosition = newGroundPosition; component.CrashWallPosition = newCrashWallPosition; component.CrashWallNormal = newCrashWallNormal; component.MoveDir = newMoveDir; component.StepType = newStepType; component.StepValue = newStepValue; component.Position = newPosition; component.Velocity = newVelocity; AddComponent(index, component); } public void ReplaceMove(UnityEngine.Transform newTransform, UnityEngine.Transform newTransformViewMain, UnityEngine.Rigidbody newRigidbody, MoveParam newMoveParam, float newJumpTimeNow, bool newIsRight, bool newIsGround, bool newIsGroundLogic, bool newIsAgainstWall, bool newIsCrashToWall, bool newIsFlowing, bool newIsWalk, bool newIsJumpCommand, bool newIsJumpPressed, bool newIsFreeTurn, bool newIsSlide, bool newIsSkillAble, float newMoveSpeedScale, float newTempMoveForceScale, Game.EJumpState newJumpState, UnityEngine.Vector3 newGroundPosition, UnityEngine.Vector3 newCrashWallPosition, UnityEngine.Vector3 newCrashWallNormal, UnityEngine.Vector3 newMoveDir, Game.EMovestepType newStepType, UnityEngine.Vector3 newStepValue, UnityEngine.Vector3 newPosition, UnityEngine.Vector3 newVelocity) { var index = GameComponentsLookup.Move; var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent)); component.Transform = newTransform; component.TransformViewMain = newTransformViewMain; component.Rigidbody = newRigidbody; component.MoveParam = newMoveParam; component.JumpTimeNow = newJumpTimeNow; component.IsRight = newIsRight; component.IsGround = newIsGround; component.IsGroundLogic = newIsGroundLogic; component.IsAgainstWall = newIsAgainstWall; component.IsCrashToWall = newIsCrashToWall; component.IsFlowing = newIsFlowing; component.IsWalk = newIsWalk; component.IsJumpCommand = newIsJumpCommand; component.IsJumpPressed = newIsJumpPressed; component.IsFreeTurn = newIsFreeTurn; component.IsSlide = newIsSlide; component.IsSkillAble = newIsSkillAble; component.MoveSpeedScale = newMoveSpeedScale; component.TempMoveForceScale = newTempMoveForceScale; component.JumpState = newJumpState; component.GroundPosition = newGroundPosition; component.CrashWallPosition = newCrashWallPosition; component.CrashWallNormal = newCrashWallNormal; component.MoveDir = newMoveDir; component.StepType = newStepType; component.StepValue = newStepValue; component.Position = newPosition; component.Velocity = newVelocity; ReplaceComponent(index, component); } public void RemoveMove() { RemoveComponent(GameComponentsLookup.Move); } } //------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public sealed partial class GameMatcher { static Entitas.IMatcher _matcherMove; public static Entitas.IMatcher Move { get { if (_matcherMove == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Move); matcher.componentNames = GameComponentsLookup.componentNames; _matcherMove = matcher; } return _matcherMove; } } }