Пример #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);
        }
Пример #2
0
 public PatrolAction(PatrolActionType type, int delay, Vector3d position)
 {
     this.type     = type;
     this.delay    = delay;
     this.position = position;
 }
Пример #3
0
 public PatrolAction()
 {
     this.type     = PatrolActionType.Move;
     this.delay    = 10;
     this.position = new Vector3d();
 }
Пример #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);
        }
Пример #5
0
 public PatrolAction(PatrolActionType type, int delay, Vector3d position)
 {
     this.type = type;
     this.delay = delay;
     this.position = position;
 }
Пример #6
0
 public PatrolAction()
 {
     this.type = PatrolActionType.Move;
     this.delay = 10;
     this.position = new Vector3d();
 }