Template:Struct/doc

From SlyMods
Jump to navigation Jump to search

Usage[edit source]

{{Struct|
{{Struct field | 0x0  | 0x4 | LM * }}
{{Struct field | 0x4  | 0x4 | int  | ccoinRichMin }}
{{Struct field | 0x8  | 0x4 | int  | ccoinRichMax }}
{{Struct field | 0xc  | 0x4 | int  | ccoinPoorMin }}
{{Struct field | 0x10 | 0x4 | int  | ccoinPoorMax }}
{{Struct field | 0x14 | 0x4 | int  | uRichLow  }}
{{Struct field | 0x18 | 0x4 | int  | uRichHigh }}
{{Struct field | 0x1c | 0x4 | DifficultyLevel * | | Pointer to the current difficulty level }}
{{Struct field | 0x20 | 0x4 | DPS  | dps | Enum }}
}}
Offset Size Type Name Description
0x0 0x4 LM *
0x4 0x4 int ccoinRichMin
0x8 0x4 int ccoinRichMax
0xc 0x4 int ccoinPoorMin
0x10 0x4 int ccoinPoorMax
0x14 0x4 int uRichLow
0x18 0x4 int uRichHigh
0x1c 0x4 DifficultyLevel * Pointer to the current difficulty level
0x20 0x4 DPS dps Enum

Template Data[edit source]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Struct

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Struct fields1 fields

Enter each field using the {{tl|Struct field}} template

Example
{{Struct field | 0x4 | 0x4 | int | ccoinRichMin | }}
Auto value
{{Struct field | | | | | }}
Templateoptional