internal void FromSave(string action) { EvaTokenReader reader = new EvaTokenReader(action); string sType = reader.NextTokenEnd(','); string sDelay = reader.NextTokenEnd(','); string sPosition = reader.NextToken('[', ']'); type = (PatrolActionType)Enum.Parse(typeof(PatrolActionType), sType); delay = int.Parse(sDelay); position = Util.ParseVector3d(sPosition, false); }
public PatrolAction(PatrolActionType type, int delay, Vector3d position) { this.type = type; this.delay = delay; this.position = position; }
public PatrolAction() { this.type = PatrolActionType.Move; this.delay = 10; this.position = new Vector3d(); }