ace/Source/ACE.Server/Physics/Common/SmartBox.cs
gmriggs 1b0ce1e28a Portal collisions from physics engine (#694)
![ACE has Portal Collisions!](https://media.discordapp.net/attachments/261242462972936192/421730007702962187/ace-logo-2018-portal.gif)

* portal wip

* Moving enqueue to outside if block

* Indoor/dungeon portals working

* collision with spawned portals

* Fixing pink bubbles

* Fixing appveyor

* Fixing ObjCell init

* Removing call to HandleActionOnCollide from Portal ActOnUse (thanks Jyrus!)
2018-03-22 21:54:44 -04:00

54 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
namespace ACE.Server.Physics.Common
{
public class SmartBox
{
public int TestMode;
public Position Viewer;
public ObjCell ViewerCell;
public int HeadIndex;
public Position ViewerSoughtPosition;
public float ViewerLightIntensity;
public float ViewerLightFalloff;
//public CameraManager CameraManager;
//public CellManager CellManager;
public PhysicsEngine Physics;
//public ObjectMaint ObjMaint;
//public LScape LScape;
//public Ambient AmbientSounds;
//public CommandInterpreter CmdInterp;
public int CreatureMode;
public float GameFOV;
public float ViewDistFOV;
public bool UseViewDistance;
public float GameAmbientLevel;
public int GameAmbientColor;
public int GameDegradesDisabled;
public int Hidden;
public int PositionUpdateComplete;
public int WaitingForTeleport;
public int HasBeenTeleported;
//public List<NetBlob> InQueue;
//public List<NetBlob> NetBlobList;
//public object PositionAndMovementFile;
public int PlayerID;
public PhysicsObj Player;
public int TargetObjectID;
public Delegate Callback;
public int NumCells;
//public List<EnvCell> Cells;
public int NumObjects;
public List<PhysicsObj> Objects;
//public Delegate RenderingCallback;
public void PlayerPhysicsUpdatedCallback()
{
Viewer = new Position();
ViewerCell = new ObjCell();
ViewerSoughtPosition = new Position();
GameFOV = 1.5707963705062866f;
}
}
}