/// <summary> /// Attaches the module to an entity /// </summary> /// <param name="entityHost">The entity host the module is attached to</param> /// <param name="replacedModule">The module that the new module replaces, is null if no module was replaced</param> protected internal virtual void AttachToEntity(XmasEntity entityHost, EntityModule replacedModule) { this.entityHost = entityHost; if (replacedModule != null && replacedModule.ModuleType == this.ModuleType) this.replacedModule = replacedModule; }
protected override void AttachToEntity(XmasEntity entityHost, EntityModule replacedModule) { base.AttachToEntity (entityHost, replacedModule); //entityHost.Register (new Trigger<UnitMovePostEvent> (xmasEntity_UnitMovedPost)); }