Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove usage of RegisterCopyStrategy #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@

import org.joml.Quaternionf;
import org.terasology.reflection.copy.CopyStrategy;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Quat4fCopyStrategy implements CopyStrategy<Quaternionf> {
public class QuaternionfCopyStrategy implements CopyStrategy<Quaternionf> {

@Override
public Quaternionf copy(Quaternionf value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import org.joml.Vector2f;
import org.terasology.reflection.copy.CopyStrategy;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Vector2fCopyStrategy implements CopyStrategy<Vector2f> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import org.terasology.reflection.copy.CopyStrategy;
import org.joml.Vector2i;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Vector2iCopyStrategy implements CopyStrategy<Vector2i> {
@Override
public Vector2i copy(Vector2i value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import org.joml.Vector3f;
import org.terasology.reflection.copy.CopyStrategy;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Vector3fCopyStrategy implements CopyStrategy<Vector3f> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import org.joml.Vector3i;
import org.terasology.reflection.copy.CopyStrategy;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Vector3iCopyStrategy implements CopyStrategy<Vector3i> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import org.joml.Vector4f;
import org.terasology.reflection.copy.CopyStrategy;
import org.terasology.reflection.copy.RegisterCopyStrategy;

/**
*/
@RegisterCopyStrategy
public class Vector4fCopyStrategy implements CopyStrategy<Vector4f> {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

package org.terasology.reflection.copy.strategy;

import org.joml.Vector4i;
import org.terasology.reflection.copy.CopyStrategy;

public class Vector4iCopyStrategy implements CopyStrategy<Vector4i> {
@Override
public Vector4i copy(Vector4i value) {
if (value != null) {
return new Vector4i(value);
}
return null;
}
}
Loading