예제 #1
0
 public ModuleControl(Texture2D texture_buy_off, Texture2D texture_buy_on, Vector2 position, Module module)
     : base(position)
 {
     _texture_buy_off = texture_buy_off;
     _texture_buy_on = texture_buy_on;
     _bounds = new Rectangle(
         (int)position.X,
         (int)position.Y,
         _texture_buy_off.Width,
         120);
     _bounds_buy = new Rectangle(
         (int)position.X + 450,
         (int)position.Y,
         _texture_buy_off.Width,
         _texture_buy_off.Height);
     _module = module;
 }
    public static OctopusConfig Create(Module module)
    {
      var xml = XDocument.Parse(module.Configuration);

      return SerializerFactory.XMLSerializer.Deserialize<OctopusConfig>(xml);
    }