2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2024-12-29 05:33:13 +00:00
SanAndreasUnity/Assets/Scripts/Behaviours/Ped/States/IPedState.cs

37 lines
1,010 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
using UnityEngine;
namespace SanAndreasUnity.Behaviours.Peds.States
{
public interface IPedState : Utilities.IState {
/// <summary> Called at the end of Update(). </summary>
void PostUpdateState ();
//void OnCollision(Collision info);
void OnDamaged(DamageInfo info);
void OnFireButtonPressed();
void OnAimButtonPressed();
void OnSubmitPressed ();
void OnJumpPressed ();
void OnCrouchButtonPressed ();
void OnNextWeaponButtonPressed();
void OnPreviousWeaponButtonPressed();
void OnFlyButtonPressed();
void OnFlyThroughButtonPressed();
/// <summary> Called when server sends a message that ped state has changed. </summary>
void OnSwitchedStateByServer(byte[] data);
/// <summary> Called when state is switched on server. The returned data will be available on client
/// when the state gets activated. </summary>
byte[] GetAdditionalNetworkData();
2019-07-06 22:46:47 +00:00
void OnChangedWeaponByServer(int newSlot);
2019-07-08 14:17:55 +00:00
void OnWeaponFiredFromServer(Weapon weapon, Vector3 firePos);
2020-05-31 17:07:22 +00:00
}
}