Skip to content

Commit

Permalink
Add ellipsoid.location, ellipsoid.size
Browse files Browse the repository at this point in the history
Yay for tags
  • Loading branch information
mcmonkey4eva committed Nov 18, 2014
1 parent 9af5b9f commit 441f5bd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dEllipsoid.java
Expand Up @@ -159,6 +159,26 @@ public String getAttribute(Attribute attribute) {
.getAttribute(attribute.fulfill(1));
}

// <--[tag]
// @attribute <ellipsoid@ellipsoid.location>
// @returns dLocation
// @description
// Returns the location of the ellipsoid.
// -->
if (attribute.startsWith("location")) {
return loc.getAttribute(attribute.fulfill(1));
}

// <--[tag]
// @attribute <ellipsoid@ellipsoid.size>
// @returns dLocation
// @description
// Returns the size of the ellipsoid.
// -->
if (attribute.startsWith("size")) {
return size.getAttribute(attribute.fulfill(1));
}

// Iterate through this object's properties' attributes
for (Property property : PropertyParser.getProperties(this)) {
String returned = property.getAttribute(attribute);
Expand Down

0 comments on commit 441f5bd

Please sign in to comment.