Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BrokeProtocol.Entities.SvTerritory Class Reference
Inheritance diagram for BrokeProtocol.Entities.SvTerritory:
BrokeProtocol.Entities.SvTextDisplay BrokeProtocol.Entities.SvEntity

Public Member Functions

override void Initialize ()
 
override void WriteActivateData ()
 
void SvSetTerritory (int owner=-1, int attacker=-1)
 
- Public Member Functions inherited from BrokeProtocol.Entities.SvTextDisplay
override void WriteActivateData ()
 
void UpdateText (string text)
 
- Public Member Functions inherited from BrokeProtocol.Entities.SvEntity
GetEvents< T > ()
 
void InitializeSender ()
 
void UpdateDefaultItems ()
 
virtual void ResetOriginal ()
 
virtual bool CheckUpdatable ()
 
void SvAnimatorEnabled (bool enabled)
 
void SvAnimatorFloat (string parameterName, float value)
 
void SvAnimatorInt (string parameterName, int value)
 
void SvAnimatorBool (string parameterName, bool value)
 
void SvAnimatorTrigger (string parameterName)
 
void SvStopVideo ()
 
void SvStartDefaultVideo (int index)
 
void SvStartCustomVideo (string url)
 
bool BuyEntity (ShPlayer buyer)
 
virtual void SvSetParent (Transform parent)
 
void SvRelocate (Transform t, Transform parent=null)
 
virtual void SvRelocate (Vector3 position, Quaternion rotation, Transform parent=null)
 
virtual bool IsValidTarget (ShPlayer chaser)
 
SizedArray SerializeAnimator ()
 
SizedArray SerializeParameters ()
 
void SendActivateToOther (ShPlayer other)
 
void SendDeactivateToOther (ShPlayer other)
 
IEnumerator SyncAnimator ()
 
void AddItemOptions (ItemOption[] options)
 
Sector GetEntitySector ()
 
bool AddSubscribedPlayer (ShPlayer player, bool sendInitData=true)
 
void RemoveSubscribedPlayer (ShPlayer player, bool dispatch)
 
void SameSector ()
 
void NewSector (Sector newSector)
 
virtual void Destroy ()
 
virtual void SvDestroyEffect ()
 
void SpawnOriginal ()
 
void SpawnFire ()
 
HashSet< T > GetLocalInRange< T > (float range)
 
void ExplosionDamage (float range, float damage, ShPlayer attacker)
 
void SvAddDynamicAction (string eventName, string label)
 
void SvRemoveDynamicAction (string eventName)
 
virtual void WriteInitData (ref object[] initializeArgs, bool isPlayer)
 
void SvSetScale (Vector3 scale)
 
virtual void InitializeSectors ()
 
virtual void Respawn ()
 
virtual void Deactivate (bool removeSectors)
 
virtual void SvRestore (Vector3 position, Quaternion rotation, int placeIndex)
 
bool LocalEntitiesOne (Func< ShEntity, bool > Test, Func< ShEntity, bool > Action)
 
void LocalEntitiesAll (Func< ShEntity, bool > Test, Action< ShEntity > Action)
 
virtual void Restock (float fraction=1f)
 
virtual void Shop (ShPlayer customer)
 
void Send (SvSendType sendType, PacketFlags channel, ClPacket packet, params object[] args)
 
void Send (SvSendType sendType, PacketFlags channel)
 

Public Attributes

ShTerritory territory
 
- Public Attributes inherited from BrokeProtocol.Entities.SvTextDisplay
ShTextDisplay textDisplay
 
- Public Attributes inherited from BrokeProtocol.Entities.SvEntity
ShEntity entity
 
ShPlayer spawner
 
ShPlayer instigator
 
IDCollection< ShPlayersubscribers
 
SvManager svManager
 
Dictionary< ValueTuple< Place, Vector2Int >, SectorlocalSectors = new ()
 
Sector sector
 
bool randomSpawn
 
bool respawnable = true
 
string videoURL = string.Empty
 
float destroyAfter
 
bool destroyEmpty
 
ItemOption[] itemOptions
 
Dictionary< int, InventoryItemdefaultItems
 
HashSet< ShPlayerspectators = new ()
 
object[] activateArgs
 
Vector3 originalPosition
 
Quaternion originalRotation
 
Transform originalParent
 

Additional Inherited Members

- Static Public Attributes inherited from BrokeProtocol.Entities.SvEntity
static readonly EntityEvents events = new()
 
- Protected Member Functions inherited from BrokeProtocol.Entities.SvEntity
void RemoveSectors (bool sendDeactivate)
 
void TryAddHuman (Sector s)
 
void TryRemoveHuman (Sector s)
 
void SendToPlayer (ShPlayer toPlayer, PacketFlags channel)
 
virtual void SendToSelf (PacketFlags channel)
 
virtual void SendToLocal (PacketFlags channel)
 
void SendToLocalOthers (PacketFlags channel)
 
void SendToAll (PacketFlags channel)
 
void SendToAllOthers (PacketFlags channel)
 
- Protected Attributes inherited from BrokeProtocol.Entities.SvEntity
readonly Dictionary< SvSendType, Action< PacketFlags > > sender = new ()
 
byte[] animatorArray
 
byte[] parameterArray
 
- Properties inherited from BrokeProtocol.Entities.SvEntity
virtual EntityEvents Events [get]
 
virtual WaypointType WaypointProperty [get]
 
CustomData CustomData = new () [get, set]
 
virtual float RespawnTime [get]
 
virtual float SpawnRate [get]
 
bool OnOrigin [get]
 
ShDoor GetDoor [get]
 
Vector3 ExteriorPosition [get]
 

Member Function Documentation

◆ Initialize()

override void BrokeProtocol.Entities.SvTerritory.Initialize ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.SvEntity.

◆ SvSetTerritory()

void BrokeProtocol.Entities.SvTerritory.SvSetTerritory ( int owner = -1,
int attacker = -1 )
inline

◆ WriteActivateData()

override void BrokeProtocol.Entities.SvTerritory.WriteActivateData ( )
inlinevirtual

Reimplemented from BrokeProtocol.Entities.SvEntity.

Member Data Documentation

◆ territory

ShTerritory BrokeProtocol.Entities.SvTerritory.territory

The documentation for this class was generated from the following file: