Skip to content

Function for editing local entity state without sending entity edit packets #2010

@ada-tv

Description

@ada-tv

This would allow for smooth animations and smooth editing without spamming edit packets to the server and clogging up the reliable packet queue.

Proposed API:

namespace Entities {
  /**
  * Modifies the client-local state of an entity without editing its server-side state.
  * @returns {Uuid} Uuid.NULL if the edit was unsuccessful
  */
  function editEntityLocal(entity: Uuid, props: EntityProperties): Uuid;

  /**
  * Sends the client-local state of an entity to the entity server.
  * @returns {Uuid} Uuid.NULL if the edit was unsuccessful
  */
  function syncToServer(entity: Uuid): Uuid;

  /**
  * Resets the client-local state of an entity to its state on the entity server.
  * @returns {Uuid} Uuid.NULL if the edit was unsuccessful
  */
  function syncToClient(entity: Uuid): Uuid;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions