|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <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 ComboComponent combo { get { return (ComboComponent)GetComponent(GameComponentsLookup.Combo); } }
|
|
|
|
|
public bool hasCombo { get { return HasComponent(GameComponentsLookup.Combo); } }
|
|
|
|
|
|
|
|
|
|
public void AddCombo(System.Collections.Generic.List<string> newWeaponList, Game.MetaData<int> newWeaponNow, System.Collections.Generic.Dictionary<string, Game.WeaponSkill> newWeaponSkillDict, Game.EComboStance newStance, Game.EComboStance newPreStance, System.Collections.Generic.List<Game.ComboInputRecord> newInputQueue, float newTriggerCancelSafeTime, System.Collections.Generic.HashSet<Game.EFunctionKey> newKeyPressSet, Game.EMoveCommand newMoveCommand, bool newIsJumpCancelable, bool newIsGroundCancelable, bool newIsSkillCancelable, int newTargetLock, System.Collections.Generic.Dictionary<int, float> newTargetLastLockTime, Game.MetaData<int> newTargetInteract) {
|
|
|
|
|
var index = GameComponentsLookup.Combo;
|
|
|
|
|
var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent));
|
|
|
|
|
component.WeaponList = newWeaponList;
|
|
|
|
|
component.WeaponNow = newWeaponNow;
|
|
|
|
|
component.WeaponSkillDict = newWeaponSkillDict;
|
|
|
|
|
component.Stance = newStance;
|
|
|
|
|
component.PreStance = newPreStance;
|
|
|
|
|
component.InputQueue = newInputQueue;
|
|
|
|
|
component.TriggerCancelSafeTime = newTriggerCancelSafeTime;
|
|
|
|
|
component.KeyPressSet = newKeyPressSet;
|
|
|
|
|
component.MoveCommand = newMoveCommand;
|
|
|
|
|
component.IsJumpCancelable = newIsJumpCancelable;
|
|
|
|
|
component.IsGroundCancelable = newIsGroundCancelable;
|
|
|
|
|
component.IsSkillCancelable = newIsSkillCancelable;
|
|
|
|
|
component.TargetLock = newTargetLock;
|
|
|
|
|
component.TargetLastLockTime = newTargetLastLockTime;
|
|
|
|
|
component.TargetInteract = newTargetInteract;
|
|
|
|
|
AddComponent(index, component);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ReplaceCombo(System.Collections.Generic.List<string> newWeaponList, Game.MetaData<int> newWeaponNow, System.Collections.Generic.Dictionary<string, Game.WeaponSkill> newWeaponSkillDict, Game.EComboStance newStance, Game.EComboStance newPreStance, System.Collections.Generic.List<Game.ComboInputRecord> newInputQueue, float newTriggerCancelSafeTime, System.Collections.Generic.HashSet<Game.EFunctionKey> newKeyPressSet, Game.EMoveCommand newMoveCommand, bool newIsJumpCancelable, bool newIsGroundCancelable, bool newIsSkillCancelable, int newTargetLock, System.Collections.Generic.Dictionary<int, float> newTargetLastLockTime, Game.MetaData<int> newTargetInteract) {
|
|
|
|
|
var index = GameComponentsLookup.Combo;
|
|
|
|
|
var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent));
|
|
|
|
|
component.WeaponList = newWeaponList;
|
|
|
|
|
component.WeaponNow = newWeaponNow;
|
|
|
|
|
component.WeaponSkillDict = newWeaponSkillDict;
|
|
|
|
|
component.Stance = newStance;
|
|
|
|
|
component.PreStance = newPreStance;
|
|
|
|
|
component.InputQueue = newInputQueue;
|
|
|
|
|
component.TriggerCancelSafeTime = newTriggerCancelSafeTime;
|
|
|
|
|
component.KeyPressSet = newKeyPressSet;
|
|
|
|
|
component.MoveCommand = newMoveCommand;
|
|
|
|
|
component.IsJumpCancelable = newIsJumpCancelable;
|
|
|
|
|
component.IsGroundCancelable = newIsGroundCancelable;
|
|
|
|
|
component.IsSkillCancelable = newIsSkillCancelable;
|
|
|
|
|
component.TargetLock = newTargetLock;
|
|
|
|
|
component.TargetLastLockTime = newTargetLastLockTime;
|
|
|
|
|
component.TargetInteract = newTargetInteract;
|
|
|
|
|
ReplaceComponent(index, component);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RemoveCombo() {
|
|
|
|
|
RemoveComponent(GameComponentsLookup.Combo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <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> _matcherCombo;
|
|
|
|
|
|
|
|
|
|
public static Entitas.IMatcher<GameEntity> Combo {
|
|
|
|
|
get {
|
|
|
|
|
if (_matcherCombo == null) {
|
|
|
|
|
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Combo);
|
|
|
|
|
matcher.componentNames = GameComponentsLookup.componentNames;
|
|
|
|
|
_matcherCombo = matcher;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _matcherCombo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|