Advertisement
MonsOlympus

Untitled

Jun 3rd, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct MyStuff
  2. {
  3.     var int numStuffs;
  4.     var int StuffsExp;
  5.     var int BrokenStuffs;
  6. };
  7.  
  8. static final operator(20) MyStuff +  (MyStuff A, MyStuff B)
  9. {
  10.     local MyStuff Temp;
  11.     Temp.numStuffs = A.numStuffs + B.numStuffs;
  12.     Temp.StuffsExp = A.StuffsExp + B.StuffsExp;
  13.     Temp.BrokenStuffs = A.BrokenStuffs + B.BrokenStuffs;
  14.     return Temp;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement