Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Rocket.API;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Xml.Serialization;
- using UnityEngine;
- namespace OmegaCore
- {
- public class PluginConfiguration : IRocketPluginConfiguration
- {
- // Ids
- public int LastId = 0;
- // Markers
- [XmlArrayItem(ElementName = "Marker")]
- public List<Marker> Markers;
- // Database
- public string DatabaseAddress = "localhost";
- public string DatabaseUsername = "username";
- public string DatabasePassword = "password";
- public string DatabaseName = "unturned";
- public int DatabasePort = 3306;
- public void LoadDefaults()
- {
- Markers = new List<Marker>();
- }
- }
- public class Marker
- {
- [XmlAttribute("Nome")]
- public string Nome;
- [XmlAttribute("Posicao")]
- public Position Posicao;
- public Marker()
- {
- Nome = "";
- Posicao = new Position();
- }
- public Marker(string nome, Vector3 pos)
- {
- Nome = nome;
- Posicao = new Position(pos);
- }
- }
- public class Position
- {
- [XmlAttribute("x")]
- public double x;
- [XmlAttribute("y")]
- public double y;
- [XmlAttribute("z")]
- public double z;
- public Position()
- {
- x = 0;
- y = 0;
- z = 0;
- }
- public Position(Vector3 pos)
- {
- x = pos.x;
- y = pos.y;
- z = pos.z;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement