Template:PT-BR/POO: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><u>'''Sintaxe POOO(OOP)'''</u> <small>Não entendeu o que significa isso?</small> {{#if: {{{1|}}} |: '''Nota''': ''{{{1}}}''|}}{{#if: {{{2|}}...") |
m (little correction) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><u>'''Sintaxe | <includeonly><u>'''Sintaxe POO(OOP)'''</u> <small>[[OOP Introduction|Não entendeu o que significa isso?]]</small> | ||
{{#if: {{{1|}}} |: '''Nota''': ''{{{1}}}''|}}{{#if: {{{2|}}} |: '''Método''': ''{{{2}}}(...)''|}}{{#if: {{{3|}}} |: '''Variável''': ''.{{{3}}}''|}}{{#if: {{{4|}}} |: '''Oposto''': ''[[{{{4}}}]]''|}}</includeonly><noinclude>{{Template documentation|Template for OOP (object orientated programming)| | {{#if: {{{1|}}} |: '''Nota''': ''{{{1}}}''|}}{{#if: {{{2|}}} |: '''Método''': ''{{{2}}}(...)''|}}{{#if: {{{3|}}} |: '''Variável''': ''.{{{3}}}''|}}{{#if: {{{4|}}} |: '''Oposto''': ''[[{{{4}}}]]''|}}</includeonly><noinclude>{{Template documentation|Template for OOP (object orientated programming)| | ||
{{ | {{PT-BR/POO|Set the variable to nil to execute [[removePedFromVehicle]]|[[ped]]:warpIntoVehicle|vehicle|getPedOccupiedVehicle}} | ||
<syntaxhighlight lang="lua">{{ | <syntaxhighlight lang="lua">{{PT-BR/POO|Set the variable to nil to execute [[removePedFromVehicle]]|[[ped]]:warpIntoVehicle|vehicle|getPedOccupiedVehicle}}</syntaxhighlight> | ||
Hey guys, here are a few "rules" in using the OOP template: | Hey guys, here are a few "rules" in using the OOP template: |
Latest revision as of 18:07, 5 May 2021
Template Documentation
Template for OOP (object orientated programming)
Usage
Sintaxe POO(OOP) Não entendeu o que significa isso?
- Nota: Set the variable to nil to execute removePedFromVehicle
- Método: ped:warpIntoVehicle(...)
- Variável: .vehicle
- Oposto: getPedOccupiedVehicle
{{PT-BR/POO|Set the variable to nil to execute [[removePedFromVehicle]]|[[ped]]:warpIntoVehicle|vehicle|getPedOccupiedVehicle}}
Hey guys, here are a few "rules" in using the OOP template:
- If it's a constructor, such as createPed, use "Ped" not "createPed" or "Ped.create"
- If it's a static class function or a constructor, use a capital letter for the first character. (Player not player).
- Likewise, if it's an object function such as "player:setName", use lowercase.
- Use full stops (or if you're american, "periods.") for static functions and colons (:) for object functions.