public override void Process(Artemis.Entity entity) { Debug.Log("TestProcessor2 " + entityWorld.Delta); }
public override void Process(Artemis.Entity e) { m_canvasWindow.Refresh(); }
public void Update(Artemis.Entity entity, float[] dangerMap, float[] interestMap) { throw new NotImplementedException(); }
/// <summary> /// Constructor /// </summary> /// <param name="mouse"></param> /// <param name="shipFactory"></param> /// <param name="world"></param> /// <param name="cameraTag">The tag of the camera entity</param> public ShipEditorService(IMouseService mouse, Artemis.EntityWorld world) { _mouse = mouse; _world = world; _transformSystem = world.SystemManager.GetSystem<MouseControlledTransformSystem>(); PropertyChanged += HandlePropertyChanged; SelectedPartEntities.CollectionChanged += OnSelectionChanged; Instance = this; }
/// <summary> /// Processes the specified entity. /// </summary> /// <param name="entity">The entity.</param> public override void Process(Artemis.Entity entity) { entity.GetComponent<TestHealthComponent>().AddDamage(10); TestTimeWaster.Delay(1000); }
public override void OnRemoved(Artemis.Entity e) { if (e.Tag == "mainTilemap") { mainTilemap = null; } else if (e.Tag == "singlesTilemap") { singlesTilemap = null; } else if (e.Tag == "roadTilemap") { roadTilemap = null; } else if (e.Tag == "wallTilemap") { wallTilemap = null; } }