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.
		
		
		
		
		
			
		
			
	
	
		
			93 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			93 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			C#
		
	
| 
											2 years ago
										 | //------------------------------------------------------------------------------ | ||
|  | // <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 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 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) | ||
|  |     { | ||
|  |         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.TransformViewMain = newTransformViewMain; | ||
|  |         component.TransformViewOther = newTransformViewOther; | ||
|  |         component.Collider = newCollider; | ||
|  |         component.Material = newMaterial; | ||
|  |         component.SpriteRenderer = newSpriteRenderer; | ||
|  |         component.EffectObject = newEffectObject; | ||
|  |         component.SkillPointerObject = newSkillPointerObject; | ||
|  |         component.LocalPositionShake = newLocalPositionShake; | ||
|  |         component.ShakeTimeLeft = newShakeTimeLeft; | ||
|  |         component.FlashTimeLeft = newFlashTimeLeft; | ||
|  |         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) | ||
|  |     { | ||
|  |         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.TransformViewMain = newTransformViewMain; | ||
|  |         component.TransformViewOther = newTransformViewOther; | ||
|  |         component.Collider = newCollider; | ||
|  |         component.Material = newMaterial; | ||
|  |         component.SpriteRenderer = newSpriteRenderer; | ||
|  |         component.EffectObject = newEffectObject; | ||
|  |         component.SkillPointerObject = newSkillPointerObject; | ||
|  |         component.LocalPositionShake = newLocalPositionShake; | ||
|  |         component.ShakeTimeLeft = newShakeTimeLeft; | ||
|  |         component.FlashTimeLeft = newFlashTimeLeft; | ||
|  |         ReplaceComponent(index, component); | ||
|  |     } | ||
|  | 
 | ||
|  |     public void RemoveView() | ||
|  |     { | ||
|  |         RemoveComponent(GameComponentsLookup.View); | ||
|  |     } | ||
|  | } | ||
|  | 
 | ||
|  | //------------------------------------------------------------------------------ | ||
|  | // <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> _matcherView; | ||
|  | 
 | ||
|  |     public static Entitas.IMatcher<GameEntity> View | ||
|  |     { | ||
|  |         get | ||
|  |         { | ||
|  |             if (_matcherView == null) | ||
|  |             { | ||
|  |                 var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.View); | ||
|  |                 matcher.componentNames = GameComponentsLookup.componentNames; | ||
|  |                 _matcherView = matcher; | ||
|  |             } | ||
|  | 
 | ||
|  |             return _matcherView; | ||
|  |         } | ||
|  |     } | ||
|  | } |