Exemplo n.º 1
0
 public Block(int ID, DoorData doorData)
 {
     this.ID            = ID;
     this.StringData[0] = doorData.displayLabel;
     this.StringData[1] = doorData.destination;
     this.StringData[2] = doorData.ID;
 }
 public override void Execute()
 {
     try
     {
         string[] array = this.args[4].StringParam.Split(new char[]
         {
             ':'
         });
         string   destination  = array[0];
         string   iD           = array[1];
         string   displayLabel = array[2];
         DoorData doorData     = new DoorData(iD, destination, displayLabel);
         this.world.Map[this.args[0].IntParam, this.args[1].IntParam, this.args[2].IntParam] = new Block(this.args[3].IntParam, doorData);
     }
     catch
     {
     }
 }