Rolled back all but the VS solution
parent
0587158f92
commit
f9ea1513d2
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("SimConfig")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-simconfig")]
|
||||||
[assembly: AssemblyProduct("SimConfig")]
|
[assembly: AssemblyDescriptionAttribute("The default configuration handler")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<ProjectGuid>{B063760D-DB8D-4F64-B6FE-335FAD1E650A}</ProjectGuid>
|
<ProjectGuid>{B063760D-DB8D-4F64-B6FE-335FAD1E650A}</ProjectGuid>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
<OutputPath>..\..\..\bin\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<Optimize>False</Optimize>
|
<Optimize>False</Optimize>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<DebugSymbols>True</DebugSymbols>
|
<DebugSymbols>True</DebugSymbols>
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("GridInterfaces")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-gridinterfaces")]
|
||||||
[assembly: AssemblyProduct("GridInterfaces")]
|
[assembly: AssemblyDescriptionAttribute("Definitions for OGS interface")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("LocalGridServers")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-localservers")]
|
||||||
[assembly: AssemblyProduct("LocalGridServers")]
|
[assembly: AssemblyDescriptionAttribute("local grid servers")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("Db4LocalStorage")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-localstorage")]
|
||||||
[assembly: AssemblyProduct("Db4LocalStorage")]
|
[assembly: AssemblyDescriptionAttribute("The local storage handler")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
16
src/Main.cs
16
src/Main.cs
|
@ -71,7 +71,7 @@ namespace OpenSim
|
||||||
private PhysicsManager physManager;
|
private PhysicsManager physManager;
|
||||||
private System.Timers.Timer timer1 = new System.Timers.Timer();
|
private System.Timers.Timer timer1 = new System.Timers.Timer();
|
||||||
private string ConfigDll = "SimConfig.dll";
|
private string ConfigDll = "SimConfig.dll";
|
||||||
private string _physicsEngine = "";
|
private string _physicsEngine = "PhysX";
|
||||||
public bool sandbox = false;
|
public bool sandbox = false;
|
||||||
public bool loginserver = false;
|
public bool loginserver = false;
|
||||||
|
|
||||||
|
@ -84,17 +84,12 @@ namespace OpenSim
|
||||||
|
|
||||||
sim = new OpenSim_Main();
|
sim = new OpenSim_Main();
|
||||||
|
|
||||||
sim.sandbox = false;
|
|
||||||
sim.loginserver = false;
|
|
||||||
sim._physicsEngine = "";
|
|
||||||
|
|
||||||
for (int i = 0; i < args.Length; i++)
|
for (int i = 0; i < args.Length; i++)
|
||||||
{
|
{
|
||||||
if(args[i] == "-sandbox")
|
if(args[i] == "-sandbox")
|
||||||
{
|
{
|
||||||
sim.sandbox = true;
|
sim.sandbox = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(args[i] == "-loginserver")
|
if(args[i] == "-loginserver")
|
||||||
{
|
{
|
||||||
sim.loginserver = true;
|
sim.loginserver = true;
|
||||||
|
@ -141,6 +136,9 @@ namespace OpenSim
|
||||||
|
|
||||||
private void Startup() {
|
private void Startup() {
|
||||||
startuptime=DateTime.Now;
|
startuptime=DateTime.Now;
|
||||||
|
timer1.Enabled = true;
|
||||||
|
timer1.Interval = 100;
|
||||||
|
timer1.Elapsed +=new ElapsedEventHandler( this.Timer1Tick );
|
||||||
|
|
||||||
// We check our local database first, then the grid for config options
|
// We check our local database first, then the grid for config options
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Loading configuration");
|
ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Loading configuration");
|
||||||
|
@ -153,10 +151,6 @@ namespace OpenSim
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("Initialising world");
|
ServerConsole.MainConsole.Instance.WriteLine("Initialising world");
|
||||||
local_world = cfg.LoadWorld();
|
local_world = cfg.LoadWorld();
|
||||||
|
|
||||||
timer1.Enabled = true;
|
|
||||||
timer1.Interval = 100;
|
|
||||||
timer1.Elapsed += new ElapsedEventHandler(this.Timer1Tick);
|
|
||||||
|
|
||||||
this.physManager = new PhysicsSystem.PhysicsManager();
|
this.physManager = new PhysicsSystem.PhysicsManager();
|
||||||
this.physManager.LoadPlugins();
|
this.physManager.LoadPlugins();
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Starting up messaging system");
|
ServerConsole.MainConsole.Instance.WriteLine("Main.cs:Startup() - Starting up messaging system");
|
||||||
|
@ -216,7 +210,7 @@ namespace OpenSim
|
||||||
OpenSimClient newuser = new OpenSimClient(epSender,(UseCircuitCodePacket)packet);
|
OpenSimClient newuser = new OpenSimClient(epSender,(UseCircuitCodePacket)packet);
|
||||||
ClientThreads.Add(epSender, newuser);
|
ClientThreads.Add(epSender, newuser);
|
||||||
} else { // invalid client
|
} else { // invalid client
|
||||||
Console.Error.WriteLine("Main.cs:OnReceivedData() - WARNING: Got a packet from an invalid client - " + epSender.ToString());
|
Console.Error.WriteLine("Main.cs:OnReceivedData() - WARNING: Got a " + packet.ToString() + " packet from an invalid client - " + epSender.ToString());
|
||||||
}
|
}
|
||||||
Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
|
Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,6 @@ namespace OpenSim
|
||||||
ConsType = constype;
|
ConsType = constype;
|
||||||
switch(constype) {
|
switch(constype) {
|
||||||
case ConsoleType.Local:
|
case ConsoleType.Local:
|
||||||
|
|
||||||
Console.WriteLine("ServerConsole.cs - creating new local console");
|
Console.WriteLine("ServerConsole.cs - creating new local console");
|
||||||
Console.WriteLine("Logs will be saved to current directory in opensim-console.log");
|
Console.WriteLine("Logs will be saved to current directory in opensim-console.log");
|
||||||
Log=File.AppendText("opensim-console.log");
|
Log=File.AppendText("opensim-console.log");
|
||||||
|
@ -84,22 +83,14 @@ namespace OpenSim
|
||||||
Log.Close();
|
Log.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Write(string format, params object[] args)
|
// You know what ReadLine() and WriteLine() do, right? And Read() and Write()? Right, you do actually know C#, right? Are you actually a programmer? Do you know english? Do you find my sense of humour in comments irritating? Good, glad you're still here
|
||||||
{
|
public override void WriteLine(string Line) {
|
||||||
Log.Write(format, args);
|
Log.WriteLine(Line);
|
||||||
Console.Write(format, args);
|
Console.WriteLine(Line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteLine(string format, params object[] args)
|
public override string ReadLine() {
|
||||||
{
|
|
||||||
Log.WriteLine(format, args);
|
|
||||||
Console.WriteLine(format, args);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string ReadLine()
|
|
||||||
{
|
|
||||||
string TempStr=Console.ReadLine();
|
string TempStr=Console.ReadLine();
|
||||||
Log.WriteLine(TempStr);
|
Log.WriteLine(TempStr);
|
||||||
return TempStr;
|
return TempStr;
|
||||||
|
@ -111,6 +102,12 @@ namespace OpenSim
|
||||||
return TempInt;
|
return TempInt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Write(string Line) {
|
||||||
|
Console.Write(Line);
|
||||||
|
Log.Write(Line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
||||||
public override string CmdPrompt(string prompt) {
|
public override string CmdPrompt(string prompt) {
|
||||||
this.Write(prompt);
|
this.Write(prompt);
|
||||||
|
@ -199,12 +196,6 @@ namespace OpenSim
|
||||||
string[] cmdparams=(string[])tempstrarray;
|
string[] cmdparams=(string[])tempstrarray;
|
||||||
RunCmd(cmd,cmdparams);
|
RunCmd(cmd,cmdparams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override void SetStatus(string status)
|
|
||||||
{
|
|
||||||
Console.Write( status + "\r" );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("RemoteGridServers")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-remoteservers")]
|
||||||
[assembly: AssemblyProduct("RemoteGridServers")]
|
[assembly: AssemblyDescriptionAttribute("Connects to remote OGS installation")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -89,8 +89,8 @@ namespace RemoteGridServers
|
||||||
String grTest = sr.ReadLine();
|
String grTest = sr.ReadLine();
|
||||||
sr.Close();
|
sr.Close();
|
||||||
GridResponse.Close();
|
GridResponse.Close();
|
||||||
if(String.IsNullOrEmpty(grTest) || grTest.Equals("1"))
|
//if(String.IsNullOrEmpty(grTest) || grTest.Equals("1"))
|
||||||
{
|
//{
|
||||||
// YAY! Valid login
|
// YAY! Valid login
|
||||||
user.Authorised = true;
|
user.Authorised = true;
|
||||||
user.LoginInfo = new Login();
|
user.LoginInfo = new Login();
|
||||||
|
@ -99,12 +99,12 @@ namespace RemoteGridServers
|
||||||
user.LoginInfo.First = "";
|
user.LoginInfo.First = "";
|
||||||
user.LoginInfo.Last = "";
|
user.LoginInfo.Last = "";
|
||||||
|
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
// Invalid
|
// // Invalid
|
||||||
user.Authorised = false;
|
// user.Authorised = false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
return(user);
|
return(user);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("ServerConsole")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-serverconsole")]
|
||||||
[assembly: AssemblyProduct("ServerConsole")]
|
[assembly: AssemblyDescriptionAttribute("The default server console")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -43,6 +43,11 @@ namespace ServerConsole
|
||||||
instance = value;
|
instance = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MainConsole()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class ConsoleBase
|
public abstract class ConsoleBase
|
||||||
|
@ -56,14 +61,15 @@ namespace ServerConsole
|
||||||
|
|
||||||
public abstract void Close();
|
public abstract void Close();
|
||||||
|
|
||||||
public abstract void Write(string format, params object[] args);
|
// You know what ReadLine() and WriteLine() do, right? And Read() and Write()? Right, you do actually know C#, right? Are you actually a programmer? Do you know english? Do you find my sense of humour in comments irritating? Good, glad you're still here
|
||||||
|
public abstract void WriteLine(string Line) ;
|
||||||
public abstract void WriteLine(string format, params object[] args);
|
|
||||||
|
|
||||||
public abstract string ReadLine();
|
public abstract string ReadLine();
|
||||||
|
|
||||||
public abstract int Read() ;
|
public abstract int Read() ;
|
||||||
|
|
||||||
|
public abstract void Write(string Line) ;
|
||||||
|
|
||||||
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
// Displays a command prompt and waits for the user to enter a string, then returns that string
|
||||||
public abstract string CmdPrompt(string prompt) ;
|
public abstract string CmdPrompt(string prompt) ;
|
||||||
|
|
||||||
|
@ -81,7 +87,5 @@ namespace ServerConsole
|
||||||
|
|
||||||
// Displays a prompt to the user and then runs the command they entered
|
// Displays a prompt to the user and then runs the command they entered
|
||||||
public abstract void MainConsolePrompt() ;
|
public abstract void MainConsolePrompt() ;
|
||||||
|
|
||||||
public abstract void SetStatus( string status );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,6 @@ namespace OpenSim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class VersionInfo
|
public class VersionInfo
|
||||||
{
|
{
|
||||||
public static string Version = "0.1, Build 1173288035, Revision 148M";
|
public static string Version = "0.1, Build 1173778834, Revision 191M";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("PhysicsManager")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-physicsmanager")]
|
||||||
[assembly: AssemblyProduct("PhysicsManager")]
|
[assembly: AssemblyDescriptionAttribute("Handles physics plugins")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
|
@ -46,11 +46,6 @@ namespace PhysicsSystem
|
||||||
|
|
||||||
public PhysicsScene GetPhysicsScene(string engineName)
|
public PhysicsScene GetPhysicsScene(string engineName)
|
||||||
{
|
{
|
||||||
if( String.IsNullOrEmpty( engineName ) )
|
|
||||||
{
|
|
||||||
return new NullPhysicsScene();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(_plugins.ContainsKey(engineName))
|
if(_plugins.ContainsKey(engineName))
|
||||||
{
|
{
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("creating "+engineName);
|
ServerConsole.MainConsole.Instance.WriteLine("creating "+engineName);
|
||||||
|
@ -58,9 +53,8 @@ namespace PhysicsSystem
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string error = String.Format("couldn't find physicsEngine: {0}", engineName);
|
ServerConsole.MainConsole.Instance.WriteLine("couldn't find physicsEngine: "+ engineName);
|
||||||
ServerConsole.MainConsole.Instance.WriteLine( error );
|
return null;
|
||||||
throw new ArgumentException( error );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,14 +108,6 @@ namespace PhysicsSystem
|
||||||
|
|
||||||
public abstract class PhysicsScene
|
public abstract class PhysicsScene
|
||||||
{
|
{
|
||||||
public static PhysicsScene Null
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return new NullPhysicsScene();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract PhysicsActor AddAvatar(PhysicsVector position);
|
public abstract PhysicsActor AddAvatar(PhysicsVector position);
|
||||||
|
|
||||||
public abstract PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size);
|
public abstract PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size);
|
||||||
|
@ -138,49 +124,8 @@ namespace PhysicsSystem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class NullPhysicsScene : PhysicsScene
|
|
||||||
{
|
|
||||||
private static int m_workIndicator;
|
|
||||||
|
|
||||||
public override PhysicsActor AddAvatar(PhysicsVector position)
|
|
||||||
{
|
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("NullPhysicsScene : AddAvatar({0})", position );
|
|
||||||
return PhysicsActor.Null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
|
|
||||||
{
|
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("NullPhysicsScene : AddPrim({0},{1})", position, size );
|
|
||||||
return PhysicsActor.Null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Simulate(float timeStep)
|
|
||||||
{
|
|
||||||
m_workIndicator = ( m_workIndicator + 1 ) % 10;
|
|
||||||
|
|
||||||
ServerConsole.MainConsole.Instance.SetStatus( m_workIndicator.ToString() );
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void GetResults()
|
|
||||||
{
|
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("NullPhysicsScene : GetResults()" );
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SetTerrain(float[] heightMap)
|
|
||||||
{
|
|
||||||
ServerConsole.MainConsole.Instance.WriteLine("NullPhysicsScene : SetTerrain({0} items)", heightMap.Length );
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool IsThreaded
|
|
||||||
{
|
|
||||||
get { return false; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract class PhysicsActor
|
public abstract class PhysicsActor
|
||||||
{
|
{
|
||||||
public static readonly PhysicsActor Null = new NullPhysicsActor();
|
|
||||||
|
|
||||||
public abstract PhysicsVector Position
|
public abstract PhysicsVector Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
|
@ -208,60 +153,6 @@ namespace PhysicsSystem
|
||||||
public abstract void SetMomentum(PhysicsVector momentum);
|
public abstract void SetMomentum(PhysicsVector momentum);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class NullPhysicsActor : PhysicsActor
|
|
||||||
{
|
|
||||||
public override PhysicsVector Position
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return PhysicsVector.Zero;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override PhysicsVector Velocity
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return PhysicsVector.Zero;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override PhysicsVector Acceleration
|
|
||||||
{
|
|
||||||
get { return PhysicsVector.Zero; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool Flying
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void AddForce(PhysicsVector force)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SetMomentum(PhysicsVector momentum)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class PhysicsVector
|
public class PhysicsVector
|
||||||
{
|
{
|
||||||
public float X;
|
public float X;
|
||||||
|
@ -279,7 +170,5 @@ namespace PhysicsSystem
|
||||||
Y = y;
|
Y = y;
|
||||||
Z = z;
|
Z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,21 @@
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// Information about this assembly is defined by the following
|
// ------------------------------------------------------------------------------
|
||||||
// attributes.
|
// <autogenerated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Mono Runtime Version: 2.0.50727.42
|
||||||
//
|
//
|
||||||
// change them to the information which is associated with the assembly
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// you compile.
|
// the code is regenerated.
|
||||||
|
// </autogenerated>
|
||||||
|
// ------------------------------------------------------------------------------
|
||||||
|
|
||||||
[assembly: AssemblyTitle("PhysXplugin")]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: CLSCompliantAttribute(false)]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyVersionAttribute("0.1.*.191")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyTitleAttribute("opensim-physicsmanager-physx")]
|
||||||
[assembly: AssemblyProduct("PhysXplugin")]
|
[assembly: AssemblyDescriptionAttribute("PhysX plugin for OpenSim")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// This sets the default COM visibility of types in the assembly to invisible.
|
|
||||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The assembly version has following format :
|
|
||||||
//
|
|
||||||
// Major.Minor.Build.Revision
|
|
||||||
//
|
|
||||||
// You can specify all values by your own or you can build default build and revision
|
|
||||||
// numbers with the '*' character (the default):
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.*")]
|
|
||||||
|
|
Loading…
Reference in New Issue