Skip to content

Access Control

Peter Shih edited this page Nov 16, 2016 · 1 revision
  • Introduce compile-time access control check as much as possible
  • Examples
    • Player's HP state
      • Should be a private field in the state POD object
      • Only it's designated manipulator can modify this field
      • So we guarantee the corresponding events will be triggered
Clone this wiki locally