2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
6.1 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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);
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public sealed partial class GameMatcher {
static Entitas.IMatcher<GameEntity> _matcherMove;
public static Entitas.IMatcher<GameEntity> Move {
get {
if (_matcherMove == null) {
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Move);
matcher.componentNames = GameComponentsLookup.componentNames;
_matcherMove = matcher;
}
return _matcherMove;
}
}
}