2
0
Fork 0

清理代码 重新生成component

master
cd 2 years ago
parent e0ee592faf
commit d5b82a0629

@ -17,7 +17,6 @@ namespace Game
[Game] [Game]
public class AIComponent : IComponent public class AIComponent : IComponent
{ {
public bool IsInit = false;
public float ThinkCdMax; //思考频率 public float ThinkCdMax; //思考频率
public float ThinkCdNow; public float ThinkCdNow;
public MetaData<float> Hungry = new MetaData<float>(); public MetaData<float> Hungry = new MetaData<float>();
@ -37,7 +36,6 @@ namespace Game
public static void ClearAI(GameEntity entity) public static void ClearAI(GameEntity entity)
{ {
var ai = entity.aI; var ai = entity.aI;
ai.IsInit = false;
ai.Hungry.Value = 0; ai.Hungry.Value = 0;
ai.HungryMax.Value = 1; ai.HungryMax.Value = 1;
ai.IsHungryFull.Value = false; ai.IsHungryFull.Value = false;

@ -22,7 +22,7 @@ public class ViewComponent : IComponent
public Vector3 PositionPre; public Vector3 PositionPre;
public SpriteRenderer SpriteRenderer; //物体的主要sprite public SpriteRenderer SpriteRenderer; //物体的主要sprite
public readonly MetaData<Vector3> PosView = new MetaData<Vector3>(); public MetaData<Vector3> PosView = new MetaData<Vector3>();
//额外对象 //额外对象
public List<EffectPoolItem> EffectObject = new List<EffectPoolItem>(); //挂在实体上的特效 public List<EffectPoolItem> EffectObject = new List<EffectPoolItem>(); //挂在实体上的特效

@ -58,11 +58,6 @@ public class AISystem : IExecuteSystem, IInitializeSystem
return; return;
} }
if (!ai.IsInit)
{
ai.IsInit = true;
}
ai.ThinkCdNow -= Time.deltaTime; ai.ThinkCdNow -= Time.deltaTime;
if (ai.ThinkCdNow > 0) if (ai.ThinkCdNow > 0)
{ {

@ -39,39 +39,6 @@ public class BulletSystem : IExecuteSystem, IInitializeSystem
Util.DestroyEntity(entity); Util.DestroyEntity(entity);
} }
} }
// public void UpdateBullet(GameEntity entity)
// {
// var id = entity.iD;
// var bullet = entity.bullet;
// var cfg = id.data;
// var bp = cfg.blueprint;
// var view = entity.view;
// bullet.data.target = bullet.target;
// switch (bullet.state)
// {
// case EBpState.Enter:
// Util.RunBP(bp, GameConst.BP_ENTRANCE_Enter, bullet.data);
// bullet.state = EBpState.Update;
// break;
// case EBpState.Update:
// var timePast = Mathf.Min(Time.deltaTime, bullet.timeLeft);
// bullet.timeLeft -= timePast;
// if (bullet.timeLeft == 0)
// {
// bullet.state = EBpState.Leave;
// }
// if (bullet.positionPre != Vector3.zero)
// {
// Util.RunBP(bp, GameConst.BP_ENTRANCE_Update, bullet.data);
// }
// bullet.positionPre = entity.GetPos(); //刷新上一次位置
// break;
// case EBpState.Leave:
// Util.RunBP(bp, GameConst.BP_ENTRANCE_Leave, bullet.data);
// Util.DestroyEntity(entity);
// break;
// }
// }
public void UpdateBulletViewRot(GameEntity entity) public void UpdateBulletViewRot(GameEntity entity)
{ {
var view = entity.view; var view = entity.view;

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: eaf184399c555614f8980150de8da698
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,11 +0,0 @@
using UnityEngine;
namespace Game
{
public class BlueprintBasicData2 : MonoBehaviour
{
public int entity;
public int target;
public int owner;
}
}

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: f550512c89805df4b93b7f51457783bf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -5,12 +5,6 @@ namespace Game
{ {
public abstract partial class GameConst public abstract partial class GameConst
{ {
//通用蓝图入口标记
public const string BpEntranceEnter = "Enter"; //进入 初始化
public const string BpEntranceUpdate = "Update"; //tick更新
public const string BpEntranceLeave = "Leave"; //退出
public const string BpEntranceExecute = "Execute"; //执行特殊逻辑
//全局 //全局
public const int FPS = 60; public const int FPS = 60;
public const float LoadingMinTime = 0.5f; //过图最少loading时间 public const float LoadingMinTime = 0.5f; //过图最少loading时间

@ -32,9 +32,5 @@ namespace Game
public const string EffectHitShieldBreak = "effect_hit_shield_break01"; // 默认护盾击破 public const string EffectHitShieldBreak = "effect_hit_shield_break01"; // 默认护盾击破
public const string EffectHitKill = "effect_hit_kill01"; // 默认击杀 public const string EffectHitKill = "effect_hit_kill01"; // 默认击杀
//通用蓝图
public const string BlueprintAICommon = "AICommon/monster";
public const string BlueprintAIDirectorCommon = "AICommon/director";
} }
} }

@ -71,8 +71,8 @@ public partial class Contexts {
public static class ContextsExtensions { public static class ContextsExtensions {
public static GameEntity GetEntityWithID(this GameContext context, int value) { public static GameEntity GetEntityWithID(this GameContext context, int Value) {
return ((Entitas.PrimaryEntityIndex<GameEntity, int>)context.GetEntityIndex(Contexts.ID)).GetEntity(value); return ((Entitas.PrimaryEntityIndex<GameEntity, int>)context.GetEntityIndex(Contexts.ID)).GetEntity(Value);
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

@ -6,42 +6,44 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public AIComponent aI { get { return (AIComponent)GetComponent(GameComponentsLookup.AI); } } public AIComponent aI { get { return (AIComponent)GetComponent(GameComponentsLookup.AI); } }
public bool hasAI { get { return HasComponent(GameComponentsLookup.AI); } } public bool hasAI { get { return HasComponent(GameComponentsLookup.AI); } }
public void AddAI( bool newIsInit, Game.EAIModuleType newModuleType, int newTarget, float newThinkCDMax, float newThinkCDNow, Game.MetaData<float> newHungry, Game.MetaData<float> newHungryMax, float newHungryIncrease, float newHungryIncreaseRate) public void AddAI(float newThinkCdMax, float newThinkCdNow, Game.MetaData<float> newHungry, Game.MetaData<float> newHungryMax, Game.MetaData<Game.EAIModuleType> newModuleType, float newHungryIncrease, float newHungryIncreaseRate, Game.MetaData<bool> newIsHungryFull, Game.MetaData<bool> newAttackPermit, Game.BehaviorTreePoolItem newBehaviorTree) {
{
var index = GameComponentsLookup.AI; var index = GameComponentsLookup.AI;
var component = (AIComponent)CreateComponent(index, typeof(AIComponent)); var component = (AIComponent)CreateComponent(index, typeof(AIComponent));
component.IsInit = newIsInit; component.ThinkCdMax = newThinkCdMax;
component.ThinkCdMax = newThinkCDMax; component.ThinkCdNow = newThinkCdNow;
component.ThinkCdNow = newThinkCDNow;
component.Hungry = newHungry; component.Hungry = newHungry;
component.HungryMax = newHungryMax; component.HungryMax = newHungryMax;
component.ModuleType = newModuleType;
component.HungryIncrease = newHungryIncrease; component.HungryIncrease = newHungryIncrease;
component.HungryIncreaseRate = newHungryIncreaseRate; component.HungryIncreaseRate = newHungryIncreaseRate;
component.IsHungryFull = newIsHungryFull;
component.AttackPermit = newAttackPermit;
component.BehaviorTree = newBehaviorTree;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceAI( bool newIsInit, Game.EAIModuleType newModuleType, int newTarget, float newThinkCDMax, float newThinkCDNow, Game.MetaData<float> newHungry, Game.MetaData<float> newHungryMax, float newHungryIncrease, float newHungryIncreaseRate) public void ReplaceAI(float newThinkCdMax, float newThinkCdNow, Game.MetaData<float> newHungry, Game.MetaData<float> newHungryMax, Game.MetaData<Game.EAIModuleType> newModuleType, float newHungryIncrease, float newHungryIncreaseRate, Game.MetaData<bool> newIsHungryFull, Game.MetaData<bool> newAttackPermit, Game.BehaviorTreePoolItem newBehaviorTree) {
{
var index = GameComponentsLookup.AI; var index = GameComponentsLookup.AI;
var component = (AIComponent)CreateComponent(index, typeof(AIComponent)); var component = (AIComponent)CreateComponent(index, typeof(AIComponent));
component.IsInit = newIsInit; component.ThinkCdMax = newThinkCdMax;
component.ThinkCdMax = newThinkCDMax; component.ThinkCdNow = newThinkCdNow;
component.ThinkCdNow = newThinkCDNow;
component.Hungry = newHungry; component.Hungry = newHungry;
component.HungryMax = newHungryMax; component.HungryMax = newHungryMax;
component.ModuleType = newModuleType;
component.HungryIncrease = newHungryIncrease; component.HungryIncrease = newHungryIncrease;
component.HungryIncreaseRate = newHungryIncreaseRate; component.HungryIncreaseRate = newHungryIncreaseRate;
component.IsHungryFull = newIsHungryFull;
component.AttackPermit = newAttackPermit;
component.BehaviorTree = newBehaviorTree;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveAI() public void RemoveAI() {
{
RemoveComponent(GameComponentsLookup.AI); RemoveComponent(GameComponentsLookup.AI);
} }
} }
@ -54,17 +56,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherAI; static Entitas.IMatcher<GameEntity> _matcherAI;
public static Entitas.IMatcher<GameEntity> AI public static Entitas.IMatcher<GameEntity> AI {
{ get {
get if (_matcherAI == null) {
{
if (_matcherAI == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.AI); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.AI);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherAI = matcher; _matcherAI = matcher;

@ -6,20 +6,21 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public AnimationComponent animation { get { return (AnimationComponent)GetComponent(GameComponentsLookup.Animation); } } public AnimationComponent animation { get { return (AnimationComponent)GetComponent(GameComponentsLookup.Animation); } }
public bool hasAnimation { get { return HasComponent(GameComponentsLookup.Animation); } } public bool hasAnimation { get { return HasComponent(GameComponentsLookup.Animation); } }
public void AddAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsFreeControl, bool newIsTimelineAnother, bool newHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg) public void AddAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsTimelineAnother, bool newHitMsg, bool newMHitMsg, bool newLHitMsg, bool newStunHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg) {
{
var index = GameComponentsLookup.Animation; var index = GameComponentsLookup.Animation;
var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent)); var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent));
component.Animator = newAnimator; component.Animator = newAnimator;
component.AnimatorOverrideController = newAnimatorOverrideController; component.AnimatorOverrideController = newAnimatorOverrideController;
component.IsTimelineAnother = newIsTimelineAnother; component.IsTimelineAnother = newIsTimelineAnother;
component.HitMsg = newHitMsg; component.HitMsg = newHitMsg;
component.MHitMsg = newMHitMsg;
component.LHitMsg = newLHitMsg;
component.StunHitMsg = newStunHitMsg;
component.AirHitMsg = newAirHitMsg; component.AirHitMsg = newAirHitMsg;
component.ReboundMsg = newReboundMsg; component.ReboundMsg = newReboundMsg;
component.DieMsg = newDieMsg; component.DieMsg = newDieMsg;
@ -27,14 +28,16 @@ public partial class GameEntity
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsFreeControl, bool newIsTimelineAnother, bool newHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg) public void ReplaceAnimation(UnityEngine.Animator newAnimator, UnityEngine.AnimatorOverrideController newAnimatorOverrideController, bool newIsTimelineAnother, bool newHitMsg, bool newMHitMsg, bool newLHitMsg, bool newStunHitMsg, bool newAirHitMsg, bool newReboundMsg, bool newDieMsg, bool newResetMsg) {
{
var index = GameComponentsLookup.Animation; var index = GameComponentsLookup.Animation;
var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent)); var component = (AnimationComponent)CreateComponent(index, typeof(AnimationComponent));
component.Animator = newAnimator; component.Animator = newAnimator;
component.AnimatorOverrideController = newAnimatorOverrideController; component.AnimatorOverrideController = newAnimatorOverrideController;
component.IsTimelineAnother = newIsTimelineAnother; component.IsTimelineAnother = newIsTimelineAnother;
component.HitMsg = newHitMsg; component.HitMsg = newHitMsg;
component.MHitMsg = newMHitMsg;
component.LHitMsg = newLHitMsg;
component.StunHitMsg = newStunHitMsg;
component.AirHitMsg = newAirHitMsg; component.AirHitMsg = newAirHitMsg;
component.ReboundMsg = newReboundMsg; component.ReboundMsg = newReboundMsg;
component.DieMsg = newDieMsg; component.DieMsg = newDieMsg;
@ -42,8 +45,7 @@ public partial class GameEntity
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveAnimation() public void RemoveAnimation() {
{
RemoveComponent(GameComponentsLookup.Animation); RemoveComponent(GameComponentsLookup.Animation);
} }
} }
@ -56,17 +58,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherAnimation; static Entitas.IMatcher<GameEntity> _matcherAnimation;
public static Entitas.IMatcher<GameEntity> Animation public static Entitas.IMatcher<GameEntity> Animation {
{ get {
get if (_matcherAnimation == null) {
{
if (_matcherAnimation == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Animation); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Animation);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherAnimation = matcher; _matcherAnimation = matcher;

@ -6,14 +6,12 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public BagComponent bag { get { return (BagComponent)GetComponent(GameComponentsLookup.Bag); } } public BagComponent bag { get { return (BagComponent)GetComponent(GameComponentsLookup.Bag); } }
public bool hasBag { get { return HasComponent(GameComponentsLookup.Bag); } } public bool hasBag { get { return HasComponent(GameComponentsLookup.Bag); } }
public void AddBag(Game.MetaDictionary<string, int> newAllBless, Game.MetaDictionary<Game.ESKillPerformance, string> newMainBless, System.Collections.Generic.List<string> newChooseBless) public void AddBag(Game.MetaDictionary<string, int> newAllBless, System.Collections.Generic.List<string> newChooseBless) {
{
var index = GameComponentsLookup.Bag; var index = GameComponentsLookup.Bag;
var component = (BagComponent)CreateComponent(index, typeof(BagComponent)); var component = (BagComponent)CreateComponent(index, typeof(BagComponent));
component.AllBless = newAllBless; component.AllBless = newAllBless;
@ -21,8 +19,7 @@ public partial class GameEntity
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceBag(Game.MetaDictionary<string, int> newAllBless, Game.MetaDictionary<Game.ESKillPerformance, string> newMainBless, System.Collections.Generic.List<string> newChooseBless) public void ReplaceBag(Game.MetaDictionary<string, int> newAllBless, System.Collections.Generic.List<string> newChooseBless) {
{
var index = GameComponentsLookup.Bag; var index = GameComponentsLookup.Bag;
var component = (BagComponent)CreateComponent(index, typeof(BagComponent)); var component = (BagComponent)CreateComponent(index, typeof(BagComponent));
component.AllBless = newAllBless; component.AllBless = newAllBless;
@ -30,8 +27,7 @@ public partial class GameEntity
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveBag() public void RemoveBag() {
{
RemoveComponent(GameComponentsLookup.Bag); RemoveComponent(GameComponentsLookup.Bag);
} }
} }
@ -44,17 +40,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherBag; static Entitas.IMatcher<GameEntity> _matcherBag;
public static Entitas.IMatcher<GameEntity> Bag public static Entitas.IMatcher<GameEntity> Bag {
{ get {
get if (_matcherBag == null) {
{
if (_matcherBag == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Bag); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Bag);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherBag = matcher; _matcherBag = matcher;

@ -6,30 +6,26 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public BuffComponent buff { get { return (BuffComponent)GetComponent(GameComponentsLookup.Buff); } } public BuffComponent buff { get { return (BuffComponent)GetComponent(GameComponentsLookup.Buff); } }
public bool hasBuff { get { return HasComponent(GameComponentsLookup.Buff); } } public bool hasBuff { get { return HasComponent(GameComponentsLookup.Buff); } }
public void AddBuff(Game.MetaDictionary<string, BuffData> newBuffMap, Game.MetaData<uint> newElementMask, System.Collections.Generic.List<System.Tuple<string, int, int>> newElementBuffList) public void AddBuff(Game.MetaDictionary<string, BuffData> newBuffMap) {
{
var index = GameComponentsLookup.Buff; var index = GameComponentsLookup.Buff;
var component = (BuffComponent)CreateComponent(index, typeof(BuffComponent)); var component = (BuffComponent)CreateComponent(index, typeof(BuffComponent));
component.BuffMap = newBuffMap; component.BuffMap = newBuffMap;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceBuff(Game.MetaDictionary<string, BuffData> newBuffMap, Game.MetaData<uint> newElementMask, System.Collections.Generic.List<System.Tuple<string, int, int>> newElementBuffList) public void ReplaceBuff(Game.MetaDictionary<string, BuffData> newBuffMap) {
{
var index = GameComponentsLookup.Buff; var index = GameComponentsLookup.Buff;
var component = (BuffComponent)CreateComponent(index, typeof(BuffComponent)); var component = (BuffComponent)CreateComponent(index, typeof(BuffComponent));
component.BuffMap = newBuffMap; component.BuffMap = newBuffMap;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveBuff() public void RemoveBuff() {
{
RemoveComponent(GameComponentsLookup.Buff); RemoveComponent(GameComponentsLookup.Buff);
} }
} }
@ -42,17 +38,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherBuff; static Entitas.IMatcher<GameEntity> _matcherBuff;
public static Entitas.IMatcher<GameEntity> Buff public static Entitas.IMatcher<GameEntity> Buff {
{ get {
get if (_matcherBuff == null) {
{
if (_matcherBuff == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Buff); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Buff);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherBuff = matcher; _matcherBuff = matcher;

@ -6,30 +6,28 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public BulletComponent bullet { get { return (BulletComponent)GetComponent(GameComponentsLookup.Bullet); } } public BulletComponent bullet { get { return (BulletComponent)GetComponent(GameComponentsLookup.Bullet); } }
public bool hasBullet { get { return HasComponent(GameComponentsLookup.Bullet); } } public bool hasBullet { get { return HasComponent(GameComponentsLookup.Bullet); } }
public void AddBullet( int newTarget, int newOwner, UnityEngine.Vector3 newCastDir, float newTimeLeft, UnityEngine.Vector3 newPositionPre) public void AddBullet(UnityEngine.Vector3 newCastDir, string newTimeline) {
{
var index = GameComponentsLookup.Bullet; var index = GameComponentsLookup.Bullet;
var component = (BulletComponent)CreateComponent(index, typeof(BulletComponent)); var component = (BulletComponent)CreateComponent(index, typeof(BulletComponent));
component.CastDir = newCastDir; component.CastDir = newCastDir;
component.Timeline = newTimeline;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceBullet(int newTarget, int newOwner, UnityEngine.Vector3 newCastDir, float newTimeLeft, UnityEngine.Vector3 newPositionPre) public void ReplaceBullet(UnityEngine.Vector3 newCastDir, string newTimeline) {
{
var index = GameComponentsLookup.Bullet; var index = GameComponentsLookup.Bullet;
var component = (BulletComponent)CreateComponent(index, typeof(BulletComponent)); var component = (BulletComponent)CreateComponent(index, typeof(BulletComponent));
component.CastDir = newCastDir; component.CastDir = newCastDir;
component.Timeline = newTimeline;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveBullet() public void RemoveBullet() {
{
RemoveComponent(GameComponentsLookup.Bullet); RemoveComponent(GameComponentsLookup.Bullet);
} }
} }
@ -42,17 +40,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherBullet; static Entitas.IMatcher<GameEntity> _matcherBullet;
public static Entitas.IMatcher<GameEntity> Bullet public static Entitas.IMatcher<GameEntity> Bullet {
{ get {
get if (_matcherBullet == null) {
{
if (_matcherBullet == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Bullet); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Bullet);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherBullet = matcher; _matcherBullet = matcher;

@ -6,18 +6,17 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public ComboComponent combo { get { return (ComboComponent)GetComponent(GameComponentsLookup.Combo); } } public ComboComponent combo { get { return (ComboComponent)GetComponent(GameComponentsLookup.Combo); } }
public bool hasCombo { get { return HasComponent(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<System.Tuple<Game.EComboStance, Game.EComboTriggerType>, string> newSkillDict, System.Collections.Generic.Dictionary<Game.EComboTriggerType, string> newSkillAnyDict, System.Collections.Generic.HashSet<string> newSkillSet, 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) 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 index = GameComponentsLookup.Combo;
var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent)); var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent));
component.WeaponList = newWeaponList; component.WeaponList = newWeaponList;
component.WeaponNow = newWeaponNow; component.WeaponNow = newWeaponNow;
component.WeaponSkillDict = newWeaponSkillDict;
component.Stance = newStance; component.Stance = newStance;
component.PreStance = newPreStance; component.PreStance = newPreStance;
component.InputQueue = newInputQueue; component.InputQueue = newInputQueue;
@ -33,12 +32,12 @@ public partial class GameEntity
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceCombo(System.Collections.Generic.List<string> newWeaponList, Game.MetaData<int> newWeaponNow, System.Collections.Generic.Dictionary<System.Tuple<Game.EComboStance, Game.EComboTriggerType>, string> newSkillDict, System.Collections.Generic.Dictionary<Game.EComboTriggerType, string> newSkillAnyDict, System.Collections.Generic.HashSet<string> newSkillSet, 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) 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 index = GameComponentsLookup.Combo;
var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent)); var component = (ComboComponent)CreateComponent(index, typeof(ComboComponent));
component.WeaponList = newWeaponList; component.WeaponList = newWeaponList;
component.WeaponNow = newWeaponNow; component.WeaponNow = newWeaponNow;
component.WeaponSkillDict = newWeaponSkillDict;
component.Stance = newStance; component.Stance = newStance;
component.PreStance = newPreStance; component.PreStance = newPreStance;
component.InputQueue = newInputQueue; component.InputQueue = newInputQueue;
@ -54,8 +53,7 @@ public partial class GameEntity
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveCombo() public void RemoveCombo() {
{
RemoveComponent(GameComponentsLookup.Combo); RemoveComponent(GameComponentsLookup.Combo);
} }
} }
@ -68,17 +66,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherCombo; static Entitas.IMatcher<GameEntity> _matcherCombo;
public static Entitas.IMatcher<GameEntity> Combo public static Entitas.IMatcher<GameEntity> Combo {
{ get {
get if (_matcherCombo == null) {
{
if (_matcherCombo == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Combo); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Combo);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherCombo = matcher; _matcherCombo = matcher;

@ -6,14 +6,12 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public HpComponent hp { get { return (HpComponent)GetComponent(GameComponentsLookup.Hp); } } public HpComponent hp { get { return (HpComponent)GetComponent(GameComponentsLookup.Hp); } }
public bool hasHp { get { return HasComponent(GameComponentsLookup.Hp); } } public bool hasHp { get { return HasComponent(GameComponentsLookup.Hp); } }
public void AddHp(Game.MetaData<float> newHp, Game.MetaData<float> newHpMax, Game.MetaData<float> newShield, Game.MetaData<float> newShieldMax, Game.MetaData<float> newStun, Game.MetaData<float> newStunMax, Game.MetaData<float> newExecute, Game.MetaData<float> newExecuteMax, Game.MetaData<bool> newIsDamaged, UnityEngine.Vector3 newLastDamageDir, float newShieldRecoverTimeMax, float newShieldRecoverTime, float newShieldRecover, int newLastDmg, float newDmgShowTime, bool newIsAlive, bool newIsDying, float newDyingTime) public void AddHp(Game.MetaData<float> newHp, Game.MetaData<float> newHpMax, Game.MetaData<float> newShield, Game.MetaData<float> newShieldMax, Game.MetaData<float> newStun, Game.MetaData<float> newStunMax, Game.MetaData<bool> newIsDamaged, UnityEngine.Vector3 newLastDamageDir, Game.EHitLevel newLastDamageLevel, int newLastDmg, float newShieldRecoverTimeMax, float newShieldRecoverTime, float newShieldRecover, float newStunRecoverTimeMax, float newStunRecoverTime, float newStunRecover, float newDmgShowTime, bool newIsAlive, bool newIsDying, float newDyingTime) {
{
var index = GameComponentsLookup.Hp; var index = GameComponentsLookup.Hp;
var component = (HpComponent)CreateComponent(index, typeof(HpComponent)); var component = (HpComponent)CreateComponent(index, typeof(HpComponent));
component.Hp = newHp; component.Hp = newHp;
@ -24,10 +22,14 @@ public partial class GameEntity
component.StunMax = newStunMax; component.StunMax = newStunMax;
component.IsDamaged = newIsDamaged; component.IsDamaged = newIsDamaged;
component.LastDamageDir = newLastDamageDir; component.LastDamageDir = newLastDamageDir;
component.LastDamageLevel = newLastDamageLevel;
component.LastDmg = newLastDmg;
component.ShieldRecoverTimeMax = newShieldRecoverTimeMax; component.ShieldRecoverTimeMax = newShieldRecoverTimeMax;
component.ShieldRecoverTime = newShieldRecoverTime; component.ShieldRecoverTime = newShieldRecoverTime;
component.ShieldRecover = newShieldRecover; component.ShieldRecover = newShieldRecover;
component.LastDmg = newLastDmg; component.StunRecoverTimeMax = newStunRecoverTimeMax;
component.StunRecoverTime = newStunRecoverTime;
component.StunRecover = newStunRecover;
component.DmgShowTime = newDmgShowTime; component.DmgShowTime = newDmgShowTime;
component.IsAlive = newIsAlive; component.IsAlive = newIsAlive;
component.IsDying = newIsDying; component.IsDying = newIsDying;
@ -35,8 +37,7 @@ public partial class GameEntity
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceHp(Game.MetaData<float> newHp, Game.MetaData<float> newHpMax, Game.MetaData<float> newShield, Game.MetaData<float> newShieldMax, Game.MetaData<float> newStun, Game.MetaData<float> newStunMax, Game.MetaData<float> newExecute, Game.MetaData<float> newExecuteMax, Game.MetaData<bool> newIsDamaged, UnityEngine.Vector3 newLastDamageDir, float newShieldRecoverTimeMax, float newShieldRecoverTime, float newShieldRecover, int newLastDmg, float newDmgShowTime, bool newIsAlive, bool newIsDying, float newDyingTime) public void ReplaceHp(Game.MetaData<float> newHp, Game.MetaData<float> newHpMax, Game.MetaData<float> newShield, Game.MetaData<float> newShieldMax, Game.MetaData<float> newStun, Game.MetaData<float> newStunMax, Game.MetaData<bool> newIsDamaged, UnityEngine.Vector3 newLastDamageDir, Game.EHitLevel newLastDamageLevel, int newLastDmg, float newShieldRecoverTimeMax, float newShieldRecoverTime, float newShieldRecover, float newStunRecoverTimeMax, float newStunRecoverTime, float newStunRecover, float newDmgShowTime, bool newIsAlive, bool newIsDying, float newDyingTime) {
{
var index = GameComponentsLookup.Hp; var index = GameComponentsLookup.Hp;
var component = (HpComponent)CreateComponent(index, typeof(HpComponent)); var component = (HpComponent)CreateComponent(index, typeof(HpComponent));
component.Hp = newHp; component.Hp = newHp;
@ -47,10 +48,14 @@ public partial class GameEntity
component.StunMax = newStunMax; component.StunMax = newStunMax;
component.IsDamaged = newIsDamaged; component.IsDamaged = newIsDamaged;
component.LastDamageDir = newLastDamageDir; component.LastDamageDir = newLastDamageDir;
component.LastDamageLevel = newLastDamageLevel;
component.LastDmg = newLastDmg;
component.ShieldRecoverTimeMax = newShieldRecoverTimeMax; component.ShieldRecoverTimeMax = newShieldRecoverTimeMax;
component.ShieldRecoverTime = newShieldRecoverTime; component.ShieldRecoverTime = newShieldRecoverTime;
component.ShieldRecover = newShieldRecover; component.ShieldRecover = newShieldRecover;
component.LastDmg = newLastDmg; component.StunRecoverTimeMax = newStunRecoverTimeMax;
component.StunRecoverTime = newStunRecoverTime;
component.StunRecover = newStunRecover;
component.DmgShowTime = newDmgShowTime; component.DmgShowTime = newDmgShowTime;
component.IsAlive = newIsAlive; component.IsAlive = newIsAlive;
component.IsDying = newIsDying; component.IsDying = newIsDying;
@ -58,8 +63,7 @@ public partial class GameEntity
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveHp() public void RemoveHp() {
{
RemoveComponent(GameComponentsLookup.Hp); RemoveComponent(GameComponentsLookup.Hp);
} }
} }
@ -72,17 +76,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherHp; static Entitas.IMatcher<GameEntity> _matcherHp;
public static Entitas.IMatcher<GameEntity> Hp public static Entitas.IMatcher<GameEntity> Hp {
{ get {
get if (_matcherHp == null) {
{
if (_matcherHp == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Hp); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Hp);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherHp = matcher; _matcherHp = matcher;

@ -6,32 +6,32 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public InteractComponent interact { get { return (InteractComponent)GetComponent(GameComponentsLookup.Interact); } } public InteractComponent interact { get { return (InteractComponent)GetComponent(GameComponentsLookup.Interact); } }
public bool hasInteract { get { return HasComponent(GameComponentsLookup.Interact); } } public bool hasInteract { get { return HasComponent(GameComponentsLookup.Interact); } }
public void AddInteract(bool newIsActive, EInteractType newInteractType, string newTargetId) public void AddInteract(Game.MetaData<bool> newIsActive, Game.MetaData<bool> newIsTarget, EInteractType newInteractType, string newTargetId) {
{
var index = GameComponentsLookup.Interact; var index = GameComponentsLookup.Interact;
var component = (InteractComponent)CreateComponent(index, typeof(InteractComponent)); var component = (InteractComponent)CreateComponent(index, typeof(InteractComponent));
component.IsActive = newIsActive;
component.IsTarget = newIsTarget;
component.InteractType = newInteractType; component.InteractType = newInteractType;
component.TargetId = newTargetId; component.TargetId = newTargetId;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceInteract(bool newIsActive, EInteractType newInteractType, string newTargetId) public void ReplaceInteract(Game.MetaData<bool> newIsActive, Game.MetaData<bool> newIsTarget, EInteractType newInteractType, string newTargetId) {
{
var index = GameComponentsLookup.Interact; var index = GameComponentsLookup.Interact;
var component = (InteractComponent)CreateComponent(index, typeof(InteractComponent)); var component = (InteractComponent)CreateComponent(index, typeof(InteractComponent));
component.IsActive = newIsActive;
component.IsTarget = newIsTarget;
component.InteractType = newInteractType; component.InteractType = newInteractType;
component.TargetId = newTargetId; component.TargetId = newTargetId;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveInteract() public void RemoveInteract() {
{
RemoveComponent(GameComponentsLookup.Interact); RemoveComponent(GameComponentsLookup.Interact);
} }
} }
@ -44,17 +44,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherInteract; static Entitas.IMatcher<GameEntity> _matcherInteract;
public static Entitas.IMatcher<GameEntity> Interact public static Entitas.IMatcher<GameEntity> Interact {
{ get {
get if (_matcherInteract == null) {
{
if (_matcherInteract == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Interact); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Interact);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherInteract = matcher; _matcherInteract = matcher;

@ -11,17 +11,25 @@ public partial class GameEntity {
public MasterSoulComponent masterSoul { get { return (MasterSoulComponent)GetComponent(GameComponentsLookup.MasterSoul); } } public MasterSoulComponent masterSoul { get { return (MasterSoulComponent)GetComponent(GameComponentsLookup.MasterSoul); } }
public bool hasMasterSoul { get { return HasComponent(GameComponentsLookup.MasterSoul); } } public bool hasMasterSoul { get { return HasComponent(GameComponentsLookup.MasterSoul); } }
public void AddMasterSoul(float newShakeTimeLeft) { public void AddMasterSoul(float newShakeTimeLeft, FluidDynamics.Fluid_Dynamics_Game_Emitter newEmitter, float newShootTimeLeft, System.Collections.Generic.Queue<int> newShootTargetQueue, System.Collections.Generic.List<MasterSoulShootInfo> newShootPreList) {
var index = GameComponentsLookup.MasterSoul; var index = GameComponentsLookup.MasterSoul;
var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent)); var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
component.ShakeTimeLeft = newShakeTimeLeft; component.ShakeTimeLeft = newShakeTimeLeft;
component.Emitter = newEmitter;
component.ShootTimeLeft = newShootTimeLeft;
component.ShootTargetQueue = newShootTargetQueue;
component.ShootPreList = newShootPreList;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceMasterSoul(float newShakeTimeLeft) { public void ReplaceMasterSoul(float newShakeTimeLeft, FluidDynamics.Fluid_Dynamics_Game_Emitter newEmitter, float newShootTimeLeft, System.Collections.Generic.Queue<int> newShootTargetQueue, System.Collections.Generic.List<MasterSoulShootInfo> newShootPreList) {
var index = GameComponentsLookup.MasterSoul; var index = GameComponentsLookup.MasterSoul;
var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent)); var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
component.ShakeTimeLeft = newShakeTimeLeft; component.ShakeTimeLeft = newShakeTimeLeft;
component.Emitter = newEmitter;
component.ShootTimeLeft = newShootTimeLeft;
component.ShootTargetQueue = newShootTargetQueue;
component.ShootPreList = newShootPreList;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }

@ -11,10 +11,11 @@ public partial class GameEntity {
public MoveComponent move { get { return (MoveComponent)GetComponent(GameComponentsLookup.Move); } } public MoveComponent move { get { return (MoveComponent)GetComponent(GameComponentsLookup.Move); } }
public bool hasMove { get { return HasComponent(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) { 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 index = GameComponentsLookup.Move;
var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent)); var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent));
component.Transform = newTransform; component.Transform = newTransform;
component.TransformViewMain = newTransformViewMain;
component.Rigidbody = newRigidbody; component.Rigidbody = newRigidbody;
component.MoveParam = newMoveParam; component.MoveParam = newMoveParam;
component.JumpTimeNow = newJumpTimeNow; component.JumpTimeNow = newJumpTimeNow;
@ -22,16 +23,20 @@ public partial class GameEntity {
component.IsGround = newIsGround; component.IsGround = newIsGround;
component.IsGroundLogic = newIsGroundLogic; component.IsGroundLogic = newIsGroundLogic;
component.IsAgainstWall = newIsAgainstWall; component.IsAgainstWall = newIsAgainstWall;
component.IsCrashToWall = newIsCrashToWall;
component.IsFlowing = newIsFlowing; component.IsFlowing = newIsFlowing;
component.IsWalk = newIsWalk; component.IsWalk = newIsWalk;
component.IsJumpCommand = newIsJumpCommand; component.IsJumpCommand = newIsJumpCommand;
component.IsJumpPressed = newIsJumpPressed; component.IsJumpPressed = newIsJumpPressed;
component.IsFreeTurn = newIsFreeTurn; component.IsFreeTurn = newIsFreeTurn;
component.IsSlide = newIsSlide; component.IsSlide = newIsSlide;
component.IsSkillAble = newIsSkillable; component.IsSkillAble = newIsSkillAble;
component.MoveSpeedScale = newMoveSpeedScale; component.MoveSpeedScale = newMoveSpeedScale;
component.TempMoveForceScale = newTempMoveForceScale;
component.JumpState = newJumpState; component.JumpState = newJumpState;
component.GroundPosition = newGroundPosition; component.GroundPosition = newGroundPosition;
component.CrashWallPosition = newCrashWallPosition;
component.CrashWallNormal = newCrashWallNormal;
component.MoveDir = newMoveDir; component.MoveDir = newMoveDir;
component.StepType = newStepType; component.StepType = newStepType;
component.StepValue = newStepValue; component.StepValue = newStepValue;
@ -40,10 +45,11 @@ public partial class GameEntity {
AddComponent(index, component); 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) { 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 index = GameComponentsLookup.Move;
var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent)); var component = (MoveComponent)CreateComponent(index, typeof(MoveComponent));
component.Transform = newTransform; component.Transform = newTransform;
component.TransformViewMain = newTransformViewMain;
component.Rigidbody = newRigidbody; component.Rigidbody = newRigidbody;
component.MoveParam = newMoveParam; component.MoveParam = newMoveParam;
component.JumpTimeNow = newJumpTimeNow; component.JumpTimeNow = newJumpTimeNow;
@ -51,16 +57,20 @@ public partial class GameEntity {
component.IsGround = newIsGround; component.IsGround = newIsGround;
component.IsGroundLogic = newIsGroundLogic; component.IsGroundLogic = newIsGroundLogic;
component.IsAgainstWall = newIsAgainstWall; component.IsAgainstWall = newIsAgainstWall;
component.IsCrashToWall = newIsCrashToWall;
component.IsFlowing = newIsFlowing; component.IsFlowing = newIsFlowing;
component.IsWalk = newIsWalk; component.IsWalk = newIsWalk;
component.IsJumpCommand = newIsJumpCommand; component.IsJumpCommand = newIsJumpCommand;
component.IsJumpPressed = newIsJumpPressed; component.IsJumpPressed = newIsJumpPressed;
component.IsFreeTurn = newIsFreeTurn; component.IsFreeTurn = newIsFreeTurn;
component.IsSlide = newIsSlide; component.IsSlide = newIsSlide;
component.IsSkillAble = newIsSkillable; component.IsSkillAble = newIsSkillAble;
component.MoveSpeedScale = newMoveSpeedScale; component.MoveSpeedScale = newMoveSpeedScale;
component.TempMoveForceScale = newTempMoveForceScale;
component.JumpState = newJumpState; component.JumpState = newJumpState;
component.GroundPosition = newGroundPosition; component.GroundPosition = newGroundPosition;
component.CrashWallPosition = newCrashWallPosition;
component.CrashWallNormal = newCrashWallNormal;
component.MoveDir = newMoveDir; component.MoveDir = newMoveDir;
component.StepType = newStepType; component.StepType = newStepType;
component.StepValue = newStepValue; component.StepValue = newStepValue;

@ -11,25 +11,27 @@ public partial class GameEntity {
public PauseComponent pause { get { return (PauseComponent)GetComponent(GameComponentsLookup.Pause); } } public PauseComponent pause { get { return (PauseComponent)GetComponent(GameComponentsLookup.Pause); } }
public bool hasPause { get { return HasComponent(GameComponentsLookup.Pause); } } public bool hasPause { get { return HasComponent(GameComponentsLookup.Pause); } }
public void AddPause(bool newIsPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache) { public void AddPause(bool new_isPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache, bool newIsPause) {
var index = GameComponentsLookup.Pause; var index = GameComponentsLookup.Pause;
var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent)); var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
component.IsPause = newIsPause; component._isPause = new_isPause;
component.PausePreFrame = newPausePreFrame; component.PausePreFrame = newPausePreFrame;
component.PauseTime = newPauseTime; component.PauseTime = newPauseTime;
component.VelocityCache = newVelocityCache; component.VelocityCache = newVelocityCache;
component.AnimeSpeedCache = newAnimeSpeedCache; component.AnimeSpeedCache = newAnimeSpeedCache;
component.IsPause = newIsPause;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplacePause(bool newIsPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache) { public void ReplacePause(bool new_isPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache, bool newIsPause) {
var index = GameComponentsLookup.Pause; var index = GameComponentsLookup.Pause;
var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent)); var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
component.IsPause = newIsPause; component._isPause = new_isPause;
component.PausePreFrame = newPausePreFrame; component.PausePreFrame = newPausePreFrame;
component.PauseTime = newPauseTime; component.PauseTime = newPauseTime;
component.VelocityCache = newVelocityCache; component.VelocityCache = newVelocityCache;
component.AnimeSpeedCache = newAnimeSpeedCache; component.AnimeSpeedCache = newAnimeSpeedCache;
component.IsPause = newIsPause;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }

@ -6,14 +6,12 @@
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public partial class GameEntity public partial class GameEntity {
{
public ViewComponent view { get { return (ViewComponent)GetComponent(GameComponentsLookup.View); } } public ViewComponent view { get { return (ViewComponent)GetComponent(GameComponentsLookup.View); } }
public bool hasView { get { return HasComponent(GameComponentsLookup.View); } } public bool hasView { get { return HasComponent(GameComponentsLookup.View); } }
public void AddView(Game.EntityPoolItem newEntityPoolItem, UnityEngine.GameObject newGameObject, UnityEngine.GameObject newGameObjectLogic, UnityEngine.Transform newTransformLogic, UnityEngine.Transform newTransformView, UnityEngine.Transform newTransformViewMain, UnityEngine.Transform newTransformViewOther, UnityEngine.Collider newCollider, UnityEngine.Material newMaterial, UnityEngine.SpriteRenderer newSpriteRenderer, System.Collections.Generic.List<UnityEngine.SpriteRenderer> newBindSpriteRenderers, System.Collections.Generic.List<Game.EffectPoolItem> newEffectObject, Game.ShadowPoolItem newShadowObject, Game.ShadowPoolItem newSkillPointerObject, UnityEngine.Vector3 newLocalPositionPre, UnityEngine.Vector3 newLocalPositionOhterPre, UnityEngine.Vector3 newLocalPositionShake, float newShakeTimeLeft, float newFlashTimeLeft) public void AddView(Game.EntityPoolItem newEntityPoolItem, UnityEngine.GameObject newGameObject, UnityEngine.GameObject newGameObjectLogic, UnityEngine.Transform newTransformLogic, UnityEngine.Transform newTransformView, UnityEngine.Transform newTransformViewRot, UnityEngine.Transform newTransformViewOffset, UnityEngine.Transform newTransformViewMain, UnityEngine.Transform newTransformViewOther, UnityEngine.Collider newCollider, UnityEngine.Material newMaterial, UnityEngine.Vector3 newPositionPre, UnityEngine.SpriteRenderer newSpriteRenderer, Game.MetaData<UnityEngine.Vector3> newPosView, System.Collections.Generic.List<Game.EffectPoolItem> newEffectObject, Game.ShadowPoolItem newSkillPointerObject, UnityEngine.Vector3 newLocalPositionOrder, UnityEngine.Vector3 newLocalPositionShake, UnityEngine.Vector3 newScaleDir, UnityEngine.Color newFlashColor, float newShakeTimeLeft, float newFlashTimeLeft, float newScaleTimeLeft, float newScaleRate) {
{
var index = GameComponentsLookup.View; var index = GameComponentsLookup.View;
var component = (ViewComponent)CreateComponent(index, typeof(ViewComponent)); var component = (ViewComponent)CreateComponent(index, typeof(ViewComponent));
component.EntityPoolItem = newEntityPoolItem; component.EntityPoolItem = newEntityPoolItem;
@ -21,21 +19,29 @@ public partial class GameEntity
component.GameObjectLogic = newGameObjectLogic; component.GameObjectLogic = newGameObjectLogic;
component.TransformLogic = newTransformLogic; component.TransformLogic = newTransformLogic;
component.TransformView = newTransformView; component.TransformView = newTransformView;
component.TransformViewRot = newTransformViewRot;
component.TransformViewOffset = newTransformViewOffset;
component.TransformViewMain = newTransformViewMain; component.TransformViewMain = newTransformViewMain;
component.TransformViewOther = newTransformViewOther; component.TransformViewOther = newTransformViewOther;
component.Collider = newCollider; component.Collider = newCollider;
component.Material = newMaterial; component.Material = newMaterial;
component.PositionPre = newPositionPre;
component.SpriteRenderer = newSpriteRenderer; component.SpriteRenderer = newSpriteRenderer;
component.PosView = newPosView;
component.EffectObject = newEffectObject; component.EffectObject = newEffectObject;
component.SkillPointerObject = newSkillPointerObject; component.SkillPointerObject = newSkillPointerObject;
component.LocalPositionOrder = newLocalPositionOrder;
component.LocalPositionShake = newLocalPositionShake; component.LocalPositionShake = newLocalPositionShake;
component.ScaleDir = newScaleDir;
component.FlashColor = newFlashColor;
component.ShakeTimeLeft = newShakeTimeLeft; component.ShakeTimeLeft = newShakeTimeLeft;
component.FlashTimeLeft = newFlashTimeLeft; component.FlashTimeLeft = newFlashTimeLeft;
component.ScaleTimeLeft = newScaleTimeLeft;
component.ScaleRate = newScaleRate;
AddComponent(index, component); AddComponent(index, component);
} }
public void ReplaceView(Game.EntityPoolItem newEntityPoolItem, UnityEngine.GameObject newGameObject, UnityEngine.GameObject newGameObjectLogic, UnityEngine.Transform newTransformLogic, UnityEngine.Transform newTransformView, UnityEngine.Transform newTransformViewMain, UnityEngine.Transform newTransformViewOther, UnityEngine.Collider newCollider, UnityEngine.Material newMaterial, UnityEngine.SpriteRenderer newSpriteRenderer, System.Collections.Generic.List<UnityEngine.SpriteRenderer> newBindSpriteRenderers, System.Collections.Generic.List<Game.EffectPoolItem> newEffectObject, Game.ShadowPoolItem newShadowObject, Game.ShadowPoolItem newSkillPointerObject, UnityEngine.Vector3 newLocalPositionPre, UnityEngine.Vector3 newLocalPositionOhterPre, UnityEngine.Vector3 newLocalPositionShake, float newShakeTimeLeft, float newFlashTimeLeft) public void ReplaceView(Game.EntityPoolItem newEntityPoolItem, UnityEngine.GameObject newGameObject, UnityEngine.GameObject newGameObjectLogic, UnityEngine.Transform newTransformLogic, UnityEngine.Transform newTransformView, UnityEngine.Transform newTransformViewRot, UnityEngine.Transform newTransformViewOffset, UnityEngine.Transform newTransformViewMain, UnityEngine.Transform newTransformViewOther, UnityEngine.Collider newCollider, UnityEngine.Material newMaterial, UnityEngine.Vector3 newPositionPre, UnityEngine.SpriteRenderer newSpriteRenderer, Game.MetaData<UnityEngine.Vector3> newPosView, System.Collections.Generic.List<Game.EffectPoolItem> newEffectObject, Game.ShadowPoolItem newSkillPointerObject, UnityEngine.Vector3 newLocalPositionOrder, UnityEngine.Vector3 newLocalPositionShake, UnityEngine.Vector3 newScaleDir, UnityEngine.Color newFlashColor, float newShakeTimeLeft, float newFlashTimeLeft, float newScaleTimeLeft, float newScaleRate) {
{
var index = GameComponentsLookup.View; var index = GameComponentsLookup.View;
var component = (ViewComponent)CreateComponent(index, typeof(ViewComponent)); var component = (ViewComponent)CreateComponent(index, typeof(ViewComponent));
component.EntityPoolItem = newEntityPoolItem; component.EntityPoolItem = newEntityPoolItem;
@ -43,21 +49,29 @@ public partial class GameEntity
component.GameObjectLogic = newGameObjectLogic; component.GameObjectLogic = newGameObjectLogic;
component.TransformLogic = newTransformLogic; component.TransformLogic = newTransformLogic;
component.TransformView = newTransformView; component.TransformView = newTransformView;
component.TransformViewRot = newTransformViewRot;
component.TransformViewOffset = newTransformViewOffset;
component.TransformViewMain = newTransformViewMain; component.TransformViewMain = newTransformViewMain;
component.TransformViewOther = newTransformViewOther; component.TransformViewOther = newTransformViewOther;
component.Collider = newCollider; component.Collider = newCollider;
component.Material = newMaterial; component.Material = newMaterial;
component.PositionPre = newPositionPre;
component.SpriteRenderer = newSpriteRenderer; component.SpriteRenderer = newSpriteRenderer;
component.PosView = newPosView;
component.EffectObject = newEffectObject; component.EffectObject = newEffectObject;
component.SkillPointerObject = newSkillPointerObject; component.SkillPointerObject = newSkillPointerObject;
component.LocalPositionOrder = newLocalPositionOrder;
component.LocalPositionShake = newLocalPositionShake; component.LocalPositionShake = newLocalPositionShake;
component.ScaleDir = newScaleDir;
component.FlashColor = newFlashColor;
component.ShakeTimeLeft = newShakeTimeLeft; component.ShakeTimeLeft = newShakeTimeLeft;
component.FlashTimeLeft = newFlashTimeLeft; component.FlashTimeLeft = newFlashTimeLeft;
component.ScaleTimeLeft = newScaleTimeLeft;
component.ScaleRate = newScaleRate;
ReplaceComponent(index, component); ReplaceComponent(index, component);
} }
public void RemoveView() public void RemoveView() {
{
RemoveComponent(GameComponentsLookup.View); RemoveComponent(GameComponentsLookup.View);
} }
} }
@ -70,17 +84,13 @@ public partial class GameEntity
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
public sealed partial class GameMatcher public sealed partial class GameMatcher {
{
static Entitas.IMatcher<GameEntity> _matcherView; static Entitas.IMatcher<GameEntity> _matcherView;
public static Entitas.IMatcher<GameEntity> View public static Entitas.IMatcher<GameEntity> View {
{ get {
get if (_matcherView == null) {
{
if (_matcherView == null)
{
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.View); var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.View);
matcher.componentNames = GameComponentsLookup.componentNames; matcher.componentNames = GameComponentsLookup.componentNames;
_matcherView = matcher; _matcherView = matcher;

Loading…
Cancel
Save