Changeset 251 for binary-improvements/7dtd-server-fixes
- Timestamp:
- Oct 28, 2015, 7:51:20 PM (9 years ago)
- Location:
- binary-improvements/7dtd-server-fixes
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/7dtd-server-fixes.csproj
r244 r251 1 <?xml version="1.0" encoding="utf-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <PropertyGroup> … … 46 46 <Private>False</Private> 47 47 </Reference> 48 <Reference Include="System.Drawing"> 49 <HintPath>..\7dtd-binaries\System.Drawing.dll</HintPath> 50 <Private>False</Private> 51 </Reference> 48 52 <Reference Include="UnityEngine"> 49 53 <HintPath>..\7dtd-binaries\UnityEngine.dll</HintPath> … … 62 66 <Compile Include="src\AssemblyInfo.cs" /> 63 67 <Compile Include="src\AllocsLogFunctions.cs" /> 68 <Compile Include="src\LiveData\Animals.cs" /> 69 <Compile Include="src\LiveData\Hostiles.cs" /> 64 70 <Compile Include="src\PlayerDataStuff.cs" /> 65 71 <Compile Include="src\PersistentData\PersistentContainer.cs" /> … … 86 92 <Compile Include="src\API.cs" /> 87 93 <Compile Include="src\ChatHookExample.cs" /> 94 <Compile Include="src\PetesUtils.cs" /> 88 95 </ItemGroup> 89 96 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
binary-improvements/7dtd-server-fixes/src/PersistentData/InvItem.cs
r250 r251 11 11 public int quality; 12 12 public InvItem[] parts; 13 public string icon = ""; 14 public string iconcolor = ""; 13 15 14 16 public InvItem (string itemName, int count, int quality = -1) -
binary-improvements/7dtd-server-fixes/src/PersistentData/Inventory.cs
r250 r251 72 72 item = new InvItem (name, _count); 73 73 } 74 75 // Figure out the icon's name 76 string icon_name = ""; 77 78 ItemClass item_class = ItemClass.list [_itemValue.type]; 79 80 if (!PetesUtils.ValidText (icon_name)) { 81 try { 82 icon_name = item_class.GetIconName (); 83 } 84 catch { } 85 } 86 87 if (!PetesUtils.ValidText (icon_name)) { 88 try { 89 icon_name = item_class.MeshFile; 90 } 91 catch { } 92 } 93 94 if (!PetesUtils.ValidText (icon_name)) { 95 try { 96 icon_name = item_class.DropMeshFile; 97 } 98 catch { } 99 } 100 101 if (!PetesUtils.ValidText (icon_name)) 102 icon_name = item_class.GetItemName (); 103 104 if (icon_name.Contains ("\\")) 105 icon_name = icon_name.Substring (icon_name.LastIndexOf ("\"") + 1); 106 107 item.icon = icon_name; 108 109 try { 110 item.iconcolor = item_class.CustomIconTint.ToHexStringRGB (); 111 } 112 catch { 113 item.iconcolor = "FFFFFF"; 114 } 115 74 116 return item; 75 117 } else { … … 77 119 } 78 120 } 79 80 81 121 } 82 122 } 83 -
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r233 r251 6 6 namespace AllocsFixes.PersistentData 7 7 { 8 8 [Serializable] 9 9 public class Players 10 10 {
Note:
See TracChangeset
for help on using the changeset viewer.