예제 #1
0
        /// <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;
        }
예제 #2
0
 protected override void AttachToEntity(XmasEntity entityHost, EntityModule replacedModule)
 {
     base.AttachToEntity (entityHost, replacedModule);
     //entityHost.Register (new Trigger<UnitMovePostEvent> (xmasEntity_UnitMovedPost));
 }