Exemplo n.º 1
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("ID"), parameters.GetValue("ParentMapID"),
          parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt(),
          parameters.GetValue("Sprite").ToInt(), 0, Enums.Coloration.Normal, Enums.Sex.Genderless);
 }
Exemplo n.º 2
0
        public void LoadFromSegmentData(ListPair <string, string> parameters)
        {
            this.parameters = parameters;



            Load(parameters.GetValue("ID"), parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt(),
                 parameters.GetValue("Speed").ToInt(), parameters.GetValue("Pause").ToBool());
        }
Exemplo n.º 3
0
        public void LoadFromSegmentData(ListPair <string, string> parameters)
        {
            this.parameters = parameters;
            //this code never gets reached
            //if (parameters.Count > 4) {
            //    string[] choices = new string[data[4].ToInt()];
            //    int n = 5;
            //    for (int i = 0; i < choices.Length; i++) {
            //        choices[i] = data[n];

            //        n += 1;
            //    }
            //    Load(parameters.GetValue("Question"), parameters.GetValue("SegmentOnYes").ToInt(-1), parameters.GetValue("SegmentOnNo").ToInt(-1), parameters.GetValue("Mugshot").ToInt(-1), choices);
            //} else {
            Load(parameters.GetValue("Question"), parameters.GetValue("SegmentOnYes").ToInt(-1), parameters.GetValue("SegmentOnNo").ToInt(-1), parameters.GetValue("Mugshot").ToInt(-1), new string[] { "Yes", "No" });
            //}
        }
Exemplo n.º 4
0
 private static void InvokeAISub(string className, string subName, params object[] args)
 {
     try {
         AITypes.GetValue(className).InvokeMember(subName,
                                                  System.Reflection.BindingFlags.Public |
                                                  System.Reflection.BindingFlags.InvokeMethod |
                                                  System.Reflection.BindingFlags.Static,
                                                  null, AIInstances.GetValue(className), args);
     } catch (Exception) {
         //TriggerError(ex);
     }
 }
Exemplo n.º 5
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("ID"), parameters.GetValue("ParentMapID"),
         parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt(),
         parameters.GetValue("Sprite").ToInt(), 0, Enums.Coloration.Normal, Enums.Sex.Genderless);
 }
Exemplo n.º 6
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("File"), parameters.GetValue("ImageID"), parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt());
 }
Exemplo n.º 7
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("Text"), parameters.GetValue("Mugshot").ToInt(-1), parameters.GetValue("Speed").ToInt(1), parameters.GetValue("PauseLocation").ToInt(-1));
 }
Exemplo n.º 8
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("ID"), (Enums.Direction)parameters.GetValue("Direction").ToInt());
 }
Exemplo n.º 9
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("File"), parameters.GetValue("HonorSettings").ToBool(), parameters.GetValue("Loop").ToBool());
 }
Exemplo n.º 10
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("Segment").ToInt());
 }
Exemplo n.º 11
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.file = parameters.GetValue("File");
 }
Exemplo n.º 12
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("Segment").ToInt());
 }
Exemplo n.º 13
0
        public void LoadFromSegmentData(ListPair<string, string> parameters)
        {
            this.parameters = parameters;
            //this code never gets reached
            //if (parameters.Count > 4) {
            //    string[] choices = new string[data[4].ToInt()];
            //    int n = 5;
            //    for (int i = 0; i < choices.Length; i++) {
            //        choices[i] = data[n];

            //        n += 1;
            //    }
            //    Load(parameters.GetValue("Question"), parameters.GetValue("SegmentOnYes").ToInt(-1), parameters.GetValue("SegmentOnNo").ToInt(-1), parameters.GetValue("Mugshot").ToInt(-1), choices);
            //} else {
                Load(parameters.GetValue("Question"), parameters.GetValue("SegmentOnYes").ToInt(-1), parameters.GetValue("SegmentOnNo").ToInt(-1), parameters.GetValue("Mugshot").ToInt(-1), new string[] { "Yes", "No" });
            //}
        }
Exemplo n.º 14
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     length          = parameters.GetValue("Length").ToInt(0);
 }
Exemplo n.º 15
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     this.visible    = parameters.GetValue("Visible").ToBool();
 }
Exemplo n.º 16
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.state = (Enums.PadlockState)Enum.Parse(typeof(Enums.PadlockState), parameters.GetValue("MovementState"));
 }
Exemplo n.º 17
0
 public GnpClient this[TClientID clientID] {
     get { return(clients.GetValue(clientID)); }
 }
Exemplo n.º 18
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.visible = parameters.GetValue("Visible").ToBool();
 }
Exemplo n.º 19
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("Text"), parameters.GetValue("Mugshot").ToInt(-1), parameters.GetValue("Speed").ToInt(1), parameters.GetValue("PauseLocation").ToInt(-1));
 }
Exemplo n.º 20
0
        public void LoadFromSegmentData(ListPair<string, string> parameters)
        {
            this.parameters = parameters;

            Load(parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt(), parameters.GetValue("Speed").ToInt(), parameters.GetValue("Pause").ToBool());
        }
Exemplo n.º 21
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("File"), parameters.GetValue("ImageID"), parameters.GetValue("X").ToInt(), parameters.GetValue("Y").ToInt());
 }
Exemplo n.º 22
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("File"), parameters.GetValue("HonorSettings").ToBool(), parameters.GetValue("Loop").ToBool());
 }
Exemplo n.º 23
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     this.state      = (Enums.PadlockState)(parameters.GetValue("State").ToInt(0));
 }
Exemplo n.º 24
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     Load(parameters.GetValue("ID"), (Enums.Direction)parameters.GetValue("Direction").ToInt());
 }
Exemplo n.º 25
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.state = (Enums.PadlockState)(parameters.GetValue("State").ToInt(0));
 }
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     this.state      = (Enums.PadlockState)Enum.Parse(typeof(Enums.PadlockState), parameters.GetValue("MovementState"));
 }
Exemplo n.º 27
0
 public void LoadFromSegmentData(ListPair <string, string> parameters)
 {
     this.parameters = parameters;
     this.file       = parameters.GetValue("File");
 }
Exemplo n.º 28
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.imageID = parameters.GetValue("ImageID");
 }
Exemplo n.º 29
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.length = parameters.GetValue("Length").ToInt(0);
 }
Exemplo n.º 30
0
 public void LoadFromSegmentData(ListPair<string, string> parameters)
 {
     this.parameters = parameters;
     this.imageID = parameters.GetValue("ImageID");
 }