Entity Interpolation (#197)
* Frame interpolation kinda works. * Added null CurState check because it can be null now. * Merge remote-tracking branch 'upstream/master' into dev-GameState
This commit is contained in:
committed by
Pieter-Jan Briers
parent
52af7d27da
commit
b1c81ed6e6
@@ -35,9 +35,12 @@ namespace Content.Client.GameObjects.Components.Clothing
|
||||
return null;
|
||||
}
|
||||
|
||||
public override void HandleComponentState(ComponentState state)
|
||||
public override void HandleComponentState(ComponentState curState, ComponentState nextState)
|
||||
{
|
||||
var clothingComponentState = (ClothingComponentState)state;
|
||||
if (curState == null)
|
||||
return;
|
||||
|
||||
var clothingComponentState = (ClothingComponentState)curState;
|
||||
ClothingEquippedPrefix = clothingComponentState.ClothingEquippedPrefix;
|
||||
EquippedPrefix = clothingComponentState.EquippedPrefix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user