annotations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
annotations [2021/12/10 11:33] – maxime | annotations [2022/08/16 10:56] (current) – maxime | ||
---|---|---|---|
Line 48: | Line 48: | ||
-- when enabling lazyInitComp, | -- when enabling lazyInitComp, | ||
lazyInitComp: | lazyInitComp: | ||
+ | </ | ||
+ | |||
+ | === Cloneable === | ||
+ | |||
+ | Instance of types flagged as '' | ||
+ | |||
+ | When extending a cloneable type, this new type will also be cloneable. All properties of the parent type will be cloned by default, but you'll have to implement the '' | ||
+ | |||
+ | <code lua> | ||
+ | local MY_CUSTOM_MANDATE = { | ||
+ | TypeName = " | ||
+ | ParentType = " | ||
+ | Properties = { | ||
+ | { Name = " | ||
+ | { Name = " | ||
+ | { Name = " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function MY_CUSTOM_MANDATE: | ||
+ | self.MyFloat = _source.MyFloat | ||
+ | self.MyString = _source.MyString | ||
+ | self.MyBuildingProgress = _source.MyBuildingProgress: | ||
+ | end | ||
+ | |||
+ | mod: | ||
</ | </ | ||
annotations.txt · Last modified: 2022/08/16 10:56 by maxime