Beispiel #1
0
        public static MoveToPositionStep CreateFromInputString(string inputLine, IEntitySupplier supplier)
        {
            string[] chunks = inputLine.Split(' ');

            var mover     = supplier.GetEntityByAlias(chunks.First());
            var target    = supplier.GetEntityByAlias(chunks.Last());
            var speedType = StepUtilities.SpeedTypeFromString(chunks[1]);

            return(new MoveToPositionStep(mover, target, speedType));
        }
 public MoveAiInDirectionStep(StepInput input)
 {
     this.Direction = RegexUtilities.GetVector3FromString(input.line);
     this.SpeedType = StepUtilities.SpeedTypeFromString(input.chunks[1]);
     this.entity    = input.supplier.GetEntityByAlias(input.chunks[0]);
 }
 public FadeScreenStep(StepInput input)
 {
     this.Alpha     = float.Parse(input.chunks[2]);
     this.SpeedType = StepUtilities.SpeedTypeFromString(input.chunks[1]);
 }