/// <summary> /// Do not allow objects outside of Jacinth to create Entities /// </summary> internal Entity(JacinthWorld world) { _isEnabled = false; _world = world; _id = Guid.NewGuid(); _hashCode = _id.GetHashCode(); }
internal ProcessorLoop(string name, JacinthWorld world) { _name = name; _world = world; }
private Task _entityUpdates = Task.Run(() => { }); // Nop-op default for when this loops is first created #endregion Fields #region Constructors internal ProcessorLoop(string name, JacinthWorld world) { _name = name; _world = world; }
/// <summary> /// Creates a new Processor within the specified World /// </summary> /// <param name="world">The World in which this Processor exists</param> protected Processor(JacinthWorld world) { _world = world; }
/// <summary> /// Instantiates a new Aggregate Processor in the given World /// </summary> protected AggregateProcessor(JacinthWorld world) : base(world) { }
/// <summary> /// Creates a new MultiSetProcessor in the given Jacinth World /// </summary> /// <param name="world"></param> protected MultiSetProcessor(JacinthWorld world) : base(world) { world.EntityUpdated += _subEntitySet1.QueueEntityAdd; world.EntityUpdated += _subEntitySet2.QueueEntityAdd; }
/// <summary> /// Creates a new SingleProcessor in the given World /// </summary> protected SingleProcessor(JacinthWorld world) : base(world) { }