Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct MyStuff
- {
- var int numStuffs;
- var int StuffsExp;
- var int BrokenStuffs;
- };
- static final operator(20) MyStuff + (MyStuff A, MyStuff B)
- {
- local MyStuff Temp;
- Temp.numStuffs = A.numStuffs + B.numStuffs;
- Temp.StuffsExp = A.StuffsExp + B.StuffsExp;
- Temp.BrokenStuffs = A.BrokenStuffs + B.BrokenStuffs;
- return Temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement