protected override void SetInitialFlags(IUpdateWriter writer, IEntity ent)
        {
            var flags = ent.Components.AssertGet <FlagAccumulatorComponent>();

            writer.SetFlag(flags.CreateAppearanceUpdateFlag());
            writer.SetFlag(new FacingCoordinateUpdateFlag(ent.GetTransform().FacingState));
            writer.SetFlag(new InteractingEntityUpdateFlag(ent.GetTransform().InteractingEntity));
        }
Ejemplo n.º 2
0
 public SqlEngine(IConfiguration configuration, ISqlDialect dialect)
 {
     this.SqlDialect           = dialect;
     this.configuration        = configuration;
     this.selectWriter         = new SelectWriter(dialect, configuration);
     this.countWriter          = new CountWriter(dialect, configuration);
     this.updateWriter         = new UpdateWriter(dialect, configuration);
     this.insertWriter         = new InsertWriter(dialect, configuration);
     this.deleteWriter         = new DeleteWriter(dialect, configuration);
     this.delegateQueryCreator = new DelegateQueryCreator(configuration);
 }
 protected override void SetInitialFlags(IUpdateWriter writer, IEntity ent)
 {
     writer.SetFlag(new InteractingEntityUpdateFlag(ent.GetTransform().InteractingEntity));
     writer.SetFlag(new FacingCoordinateUpdateFlag(ent.GetTransform().FacingState));
 }
 protected abstract void SetInitialFlags(IUpdateWriter writer, IEntity ent);