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.

101 lines
5.3 KiB
C#

2 years ago
//------------------------------------------------------------------------------
// <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.Rigidbody newRigidbody, MoveParam newMoveParam, float newJumpTimeNow, bool newIsRight, bool newIsGround, bool newIsGroundLogic, bool newIsAgainstWall, bool newIsFlowing, bool newIsWalk, bool newIsJumpCommand, bool newIsJumpPressed, bool newIsTurning, float newTurnRate, bool newIsFreeTurn, bool newIsSlide, bool newIsSkillable, float newMoveSpeedScale, Game.EJumpState newJumpState, UnityEngine.Vector3 newGroundPosition, UnityEngine.Vector3 newMoveDir, bool newSkillMoveFlag, 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.Rigidbody = newRigidbody;
component.MoveParam = newMoveParam;
component.JumpTimeNow = newJumpTimeNow;
component.IsRight = newIsRight;
component.IsGround = newIsGround;
component.IsGroundLogic = newIsGroundLogic;
component.IsAgainstWall = newIsAgainstWall;
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.JumpState = newJumpState;
component.GroundPosition = newGroundPosition;
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.Rigidbody newRigidbody, MoveParam newMoveParam, float newJumpTimeNow, bool newIsRight, bool newIsGround, bool newIsGroundLogic, bool newIsAgainstWall, bool newIsFlowing, bool newIsWalk, bool newIsJumpCommand, bool newIsJumpPressed, bool newIsTurning, float newTurnRate, bool newIsFreeTurn, bool newIsSlide, bool newIsSkillable, float newMoveSpeedScale, Game.EJumpState newJumpState, UnityEngine.Vector3 newGroundPosition, UnityEngine.Vector3 newMoveDir, bool newSkillMoveFlag, 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.Rigidbody = newRigidbody;
component.MoveParam = newMoveParam;
component.JumpTimeNow = newJumpTimeNow;
component.IsRight = newIsRight;
component.IsGround = newIsGround;
component.IsGroundLogic = newIsGroundLogic;
component.IsAgainstWall = newIsAgainstWall;
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.JumpState = newJumpState;
component.GroundPosition = newGroundPosition;
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;
}
}
}