Added mileage, changed all namespaces from reallife_gamemode to ReallifeGamemode

This commit is contained in:
hydrant
2019-03-06 21:12:34 +01:00
parent 13142edbb7
commit bee3497fc3
104 changed files with 1408 additions and 297 deletions

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using reallife_gamemode.Server.Entities;
using ReallifeGamemode.Server.Entities;
/**
* @overview Life of German Reallife - Entities Ban (Ban.cs)
@@ -11,7 +11,7 @@ using reallife_gamemode.Server.Entities;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Ban
{

View File

@@ -1,13 +1,13 @@
using reallife_gamemode.Server.Business;
using reallife_gamemode.Server.Managers;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Business;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class BusinessBankAccount : IBankAccount
{

View File

@@ -7,7 +7,7 @@ using System.ComponentModel.DataAnnotations.Schema;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Character
{

View File

@@ -7,7 +7,7 @@ using System.ComponentModel.DataAnnotations.Schema;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class CharacterCloth
{

View File

@@ -11,7 +11,7 @@ using System.Text;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class ClothCombination
{

View File

@@ -11,7 +11,7 @@ using System.Text;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Door
{

View File

@@ -10,7 +10,7 @@ using System.Text;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class DutyCloth
{

View File

@@ -1,5 +1,5 @@
using reallife_gamemode.Server.Models;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Util;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
@@ -10,7 +10,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Faction : IBankAccountOwner
{

View File

@@ -1,5 +1,5 @@
using GTANetworkAPI;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -11,7 +11,7 @@ using System.Text;
* @author VegaZ
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class FactionBankAccount : IBankAccount
{

View File

@@ -1,8 +1,8 @@
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class FactionRank
{

View File

@@ -1,4 +1,4 @@
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
@@ -8,7 +8,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
[Table("FactionVehicles")]
public class FactionVehicle : ServerVehicle

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using reallife_gamemode.Server.Entities;
using ReallifeGamemode.Server.Entities;
/**
* @overview Life of German Reallife - Entities GotoPoints (GotoPoints.cs)
@@ -11,7 +11,7 @@ using reallife_gamemode.Server.Entities;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class GotoPoint
{

View File

@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Interior
{

View File

@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class News
{

View File

@@ -1,11 +1,11 @@
using GTANetworkAPI;
using reallife_gamemode.Server.Extensions;
using reallife_gamemode.Server.Managers;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Util;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public abstract class ServerVehicle
{
@@ -24,6 +24,7 @@ namespace reallife_gamemode.Server.Entities
public int SecondaryColor { get; set; }
public bool Locked { get; set; }
public bool Active { get; set; }
public float DistanceDriven { get; set; }
[NotMapped]
public Vector3 Position => new Vector3(PositionX, PositionY, PositionZ);
@@ -42,6 +43,8 @@ namespace reallife_gamemode.Server.Entities
VehicleStreaming.SetLockStatus(veh, this.Locked);
VehicleManager.AddVehicle(this, veh);
veh.SetSharedData("drivenDistance", this.DistanceDriven);
string numberplate = $"{this.Id}";
if(this is FactionVehicle fV)

View File

@@ -1,6 +1,6 @@
using GTANetworkAPI;
using reallife_gamemode.Server.Business;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Business;
using ReallifeGamemode.Server.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -13,7 +13,7 @@ using System.Text;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
[Table("ShopVehicles")]
public class ShopVehicle : ServerVehicle

View File

@@ -1,6 +1,6 @@
using GTANetworkAPI;
using reallife_gamemode.Server.Models;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -13,7 +13,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class User : IBankAccountOwner
{

View File

@@ -1,6 +1,6 @@
using reallife_gamemode.Server.Models;
using reallife_gamemode.Server.Services;
using reallife_gamemode.Server.Util;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Util;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
@@ -11,7 +11,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class UserBankAccount : IBankAccount
{

View File

@@ -1,4 +1,4 @@
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
@@ -9,7 +9,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class UserItem
{

View File

@@ -1,4 +1,4 @@
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
@@ -8,7 +8,7 @@ using System.Linq;
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
[Table("UserVehicles")]
public class UserVehicle : ServerVehicle

View File

@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class VehicleMod
{

View File

@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace reallife_gamemode.Server.Entities
namespace ReallifeGamemode.Server.Entities
{
public class Whitelist
{