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.
67 lines
2.9 KiB
C#
67 lines
2.9 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 PauseComponent pause { get { return (PauseComponent)GetComponent(GameComponentsLookup.Pause); } }
|
|
public bool hasPause { get { return HasComponent(GameComponentsLookup.Pause); } }
|
|
|
|
public void AddPause(bool new_isPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache, bool newIsPause) {
|
|
var index = GameComponentsLookup.Pause;
|
|
var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
|
|
component._isPause = new_isPause;
|
|
component.PausePreFrame = newPausePreFrame;
|
|
component.PauseTime = newPauseTime;
|
|
component.VelocityCache = newVelocityCache;
|
|
component.AnimeSpeedCache = newAnimeSpeedCache;
|
|
component.IsPause = newIsPause;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplacePause(bool new_isPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache, bool newIsPause) {
|
|
var index = GameComponentsLookup.Pause;
|
|
var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
|
|
component._isPause = new_isPause;
|
|
component.PausePreFrame = newPausePreFrame;
|
|
component.PauseTime = newPauseTime;
|
|
component.VelocityCache = newVelocityCache;
|
|
component.AnimeSpeedCache = newAnimeSpeedCache;
|
|
component.IsPause = newIsPause;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemovePause() {
|
|
RemoveComponent(GameComponentsLookup.Pause);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherPause;
|
|
|
|
public static Entitas.IMatcher<GameEntity> Pause {
|
|
get {
|
|
if (_matcherPause == null) {
|
|
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Pause);
|
|
matcher.componentNames = GameComponentsLookup.componentNames;
|
|
_matcherPause = matcher;
|
|
}
|
|
|
|
return _matcherPause;
|
|
}
|
|
}
|
|
}
|