C# Code Fehler und Sabotage -Einheitsprojekt [geschlossen]C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 C# Code Fehler und Sabotage -Einheitsprojekt [geschlossen]

Post by Anonymous »

Ich habe also ein Einheitsprojekt, das diesen Fehler hat:

, das das Laufen aus dem Laufen ist. />
Assets\Plugins\Assembly-CSharp-firstpass\Rewired\Demos\CustomPlatform\MyPlatform Hardware JoystickMapPlatformMap.cs(11,16): error CS0534: 'MyPlatform Hardware JoystickMapPlatformMap.PlatformMapBase' does not implement inherited abstract member 'HardwareJoyStickMap.Platform_custom.buttons.get'

Also habe ich in die angegebene myPlatformHardwarejoyTickMaplatformMap.cs Datei eingegangen. Und es sah so aus: < /p>

Code: Select all

using System;
using System.Collections.Generic;
using Rewired.Data.Mapping;
using Rewired.Platforms.Custom;

namespace Rewired.Demos.CustomPlatform
{
public sealed class MyPlatformHardwareJoystickMapPlatformMap : HardwareJoystickMapCustomPlatformMapSO
{
[Serializable]
public class PlatformMapBase : HardwareJoystickMapCustomPlatformMap
{
protected override object CreateInstance()
{
return new PlatformMapBase();
}
}

[Serializable]
public sealed class PlatformMap : PlatformMapBase
{
public PlatformMapBase[] variants;

public override IList GetVariants()
{
return variants;
}

protected override object CreateInstance()
{
return new PlatformMap();
}
}

[Serializable]
public sealed class MatchingCriteria : HardwareJoystickMapCustomPlatformMap.MatchingCriteria
{
public uint vendorId;

public uint productId;

public override bool Matches(object customIdentifier)
{
if (!(customIdentifier is MyPlatformControllerIdentifier myPlatformControllerIdentifier))
{
return false;
}
if (myPlatformControllerIdentifier.productId == productId)
{
return myPlatformControllerIdentifier.vendorId == vendorId;
}
return false;
}

protected override object CreateInstance()
{
return new MatchingCriteria();
}

protected override void DeepClone(object destination)
{
base.DeepClone(destination);
MatchingCriteria obj = (MatchingCriteria)destination;
obj.vendorId = vendorId;
obj.productId = productId;
}
}

public PlatformMap platformMap;

public override HardwareJoystickMap.Platform GetPlatformMap()
{
return platformMap;
}
}
}

< /code>
Visual Studio hat keine Fehler aufgeführt. Ich habe nach der prophezeiten HardwarejoyStickMap.Platform_custom.buttons.get 
Datei gesucht. Aber ich habe nichts bekommen. Ich bin mir ehrlich gesagt nicht einmal sicher, was ich anschaue, also bitte ich um Unterstützung darüber, was ich tun und was ich ändern soll.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post