public override void Process(Artemis.Entity entity)
 {
     Debug.Log("TestProcessor2 " + entityWorld.Delta);
 }
示例#2
0
 public override void Process(Artemis.Entity e)
 {
     m_canvasWindow.Refresh();
 }
示例#3
0
 public void Update(Artemis.Entity entity, float[] dangerMap, float[] interestMap)
 {
     throw new NotImplementedException();
 }
示例#4
0
 /// <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);
 }
示例#6
0
 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;
     }
 }