Last change
on this file since 325 was 325, checked in by alloc, 6 years ago |
Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)
|
File size:
608 bytes
|
Rev | Line | |
---|
[253] | 1 | using System;
|
---|
| 2 | using System.Runtime.Serialization;
|
---|
| 3 |
|
---|
[325] | 4 | namespace AllocsFixes.PersistentData {
|
---|
[253] | 5 | [Serializable]
|
---|
| 6 | public class InvItem {
|
---|
| 7 | public string itemName;
|
---|
| 8 | public int count;
|
---|
| 9 | public int quality;
|
---|
| 10 | public InvItem[] parts;
|
---|
| 11 | public string icon = "";
|
---|
| 12 | public string iconcolor = "";
|
---|
[287] | 13 | [OptionalField]
|
---|
| 14 | public int maxUseTimes;
|
---|
| 15 | [OptionalField]
|
---|
| 16 | public int useTimes;
|
---|
[253] | 17 |
|
---|
[287] | 18 | public InvItem (string itemName, int count, int quality, int maxUseTimes, int maxUse) {
|
---|
[253] | 19 | this.itemName = itemName;
|
---|
| 20 | this.count = count;
|
---|
| 21 | this.quality = quality;
|
---|
[287] | 22 | this.maxUseTimes = maxUseTimes;
|
---|
| 23 | this.useTimes = maxUse;
|
---|
[253] | 24 | }
|
---|
| 25 | }
|
---|
[325] | 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.