//------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ public partial class GameEntity { public ViewComponent view { get { return (ViewComponent)GetComponent(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 newTransformViewRot, UnityEngine.Transform newTransformViewOffset, UnityEngine.Transform newTransformViewMain, UnityEngine.Transform newTransformViewOther, UnityEngine.Collider newCollider, UnityEngine.Material newMaterial, UnityEngine.Vector3 newPositionPre, UnityEngine.SpriteRenderer newSpriteRenderer, Game.MetaData newPosView, System.Collections.Generic.List 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 component = (ViewComponent)CreateComponent(index, typeof(ViewComponent)); component.EntityPoolItem = newEntityPoolItem; component.GameObject = newGameObject; component.GameObjectLogic = newGameObjectLogic; component.TransformLogic = newTransformLogic; component.TransformView = newTransformView; component.TransformViewRot = newTransformViewRot; component.TransformViewOffset = newTransformViewOffset; component.TransformViewMain = newTransformViewMain; component.TransformViewOther = newTransformViewOther; component.Collider = newCollider; component.Material = newMaterial; component.PositionPre = newPositionPre; component.SpriteRenderer = newSpriteRenderer; component.PosView = newPosView; component.EffectObject = newEffectObject; component.SkillPointerObject = newSkillPointerObject; component.LocalPositionOrder = newLocalPositionOrder; component.LocalPositionShake = newLocalPositionShake; component.ScaleDir = newScaleDir; component.FlashColor = newFlashColor; component.ShakeTimeLeft = newShakeTimeLeft; component.FlashTimeLeft = newFlashTimeLeft; component.ScaleTimeLeft = newScaleTimeLeft; component.ScaleRate = newScaleRate; AddComponent(index, component); } 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 newPosView, System.Collections.Generic.List 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 component = (ViewComponent)CreateComponent(index, typeof(ViewComponent)); component.EntityPoolItem = newEntityPoolItem; component.GameObject = newGameObject; component.GameObjectLogic = newGameObjectLogic; component.TransformLogic = newTransformLogic; component.TransformView = newTransformView; component.TransformViewRot = newTransformViewRot; component.TransformViewOffset = newTransformViewOffset; component.TransformViewMain = newTransformViewMain; component.TransformViewOther = newTransformViewOther; component.Collider = newCollider; component.Material = newMaterial; component.PositionPre = newPositionPre; component.SpriteRenderer = newSpriteRenderer; component.PosView = newPosView; component.EffectObject = newEffectObject; component.SkillPointerObject = newSkillPointerObject; component.LocalPositionOrder = newLocalPositionOrder; component.LocalPositionShake = newLocalPositionShake; component.ScaleDir = newScaleDir; component.FlashColor = newFlashColor; component.ShakeTimeLeft = newShakeTimeLeft; component.FlashTimeLeft = newFlashTimeLeft; component.ScaleTimeLeft = newScaleTimeLeft; component.ScaleRate = newScaleRate; ReplaceComponent(index, component); } public void RemoveView() { RemoveComponent(GameComponentsLookup.View); } } //------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ public sealed partial class GameMatcher { static Entitas.IMatcher _matcherView; public static Entitas.IMatcher View { get { if (_matcherView == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.View); matcher.componentNames = GameComponentsLookup.componentNames; _matcherView = matcher; } return _matcherView; } } }