|
|
|
@ -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;
|
|
|
|
|