public override TemplateObject Handle(TagData data) { if (data.Remaining == 0) { return(this); } switch (data[0]) { // <--[tag] // @Name PhysicsEntityTag.mass // @Group General Information // @ReturnType NumberTag // @Returns the PhysicsEntity's mass. // @Example "10" .mass could return "40". // --> case "mass": return(new NumberTag(Internal.Mass).Handle(data.Shrink())); // <--[tag] // @Name PhysicsEntityTag.bounciness // @Group General Information // @ReturnType NumberTag // @Returns the PhysicsEntity's bounciness (how much it bounces). // @Example "10" .bounciness could return "0.5". // --> case "bounciness": return(new NumberTag(Internal.GetBounciness()).Handle(data.Shrink())); default: return(new EntityTag((Entity)Internal).Handle(data)); } }