Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions MLAPI/Attributes/FieldType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace MLAPI.Attributes
{
internal enum FieldType
{
Bool,
Byte,
Char,
Double,
Single,
Int,
Long,
SByte,
Short,
UInt,
ULong,
UShort,
String,
Vector3,
Vector2,
Quaternion
}
}
10 changes: 10 additions & 0 deletions MLAPI/Attributes/SyncedVar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;

namespace MLAPI.Attributes
{
[AttributeUsage(AttributeTargets.Field)]
public class SyncedVar : Attribute
{

}
}
6 changes: 4 additions & 2 deletions MLAPI/MLAPI.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -41,7 +41,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand All @@ -56,6 +56,8 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Attributes\FieldType.cs" />
<Compile Include="Attributes\SyncedVar.cs" />
<Compile Include="Data\NetworkPool.cs" />
<Compile Include="Data\TrackedPointData.cs" />
<Compile Include="MonoBehaviours\Prototyping\NetworkedAnimator.cs" />
Expand Down
Loading