Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public PatrolAction(PatrolActionType type, int delay, Vector3d position)
 {
     this.type     = type;
     this.delay    = delay;
     this.position = position;
 }
Ejemplo n.º 3
0
 public PatrolAction()
 {
     this.type     = PatrolActionType.Move;
     this.delay    = 10;
     this.position = new Vector3d();
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public PatrolAction(PatrolActionType type, int delay, Vector3d position)
 {
     this.type = type;
     this.delay = delay;
     this.position = position;
 }
Ejemplo n.º 6
0
 public PatrolAction()
 {
     this.type = PatrolActionType.Move;
     this.delay = 10;
     this.position = new Vector3d();
 }