public Fire() { IsPassable = false; Size = new Size(1, 1); Id = 0x00000600; ObjectWithState = new ObjectWithState( new List <ObjectState> { new ObjectState(ObjectStates.ObjectStates.Firing) { TickCount = 300, Distribution = 10, Eternal = false }, new ObjectState(ObjectStates.ObjectStates.Attenuating) { TickCount = 150, Distribution = 10, Eternal = false } }, false, OnLastStateFinished); Name = "Fire"; }
public FixedObjectWithState(ObjectWithStateContext context) : base(context) { var props = context.ObjectStateProps.Select(pair => new ObjectState(pair.Key, pair.Value)).ToList(); ObjectWithState = new ObjectWithState( props, false, OnLastStateFinished); }
public Mushroom(MushroomContext context) : base(context) { BaseIds = context.BaseIds; ObjectWithState = new ObjectWithState( new List <ObjectState> { new ObjectState(ObjectStates.ObjectStates.Growing, context.GrowingProps), new ObjectState(ObjectStates.ObjectStates.Staying, context.StayingProps) }, false, OnLastStateFinished); }
public Plant(PlantContext plantContext) : base(plantContext) { _plantContext = plantContext; ObjectWithState = new ObjectWithState( new List <ObjectState> { new ObjectState(ObjectStates.ObjectStates.Growing, plantContext.GrowingProps), new ObjectState(ObjectStates.ObjectStates.Staying, plantContext.StayingProps), new ObjectState(ObjectStates.ObjectStates.Drying, plantContext.DryingProps) }, false, OnLastStateFinished); }